You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This section contains a non-exhaustive list of known schemas that MAY be supported by clients and servers.
224
+
225
+
### Peer
226
+
227
+
The `peer` schema represents an arbitrary peer.
228
+
229
+
```json
230
+
{
231
+
"Schema": "peer",
232
+
"ID": "12D3K...",
233
+
"Addrs": ["/ip4/..."],
234
+
"Protocols": ["transport-bitswap", ...]
235
+
}
236
+
```
237
+
238
+
-`ID`: the [Peer ID](https://github.com/libp2p/specs/blob/master/peer-ids/peer-ids.md).
239
+
-`Addrs`: a list of known [multiaddrs][multiaddr] for this peer. This list MAY be incomplete.
240
+
-`Protocols`: a list of protocols known to be supported by this peer.
241
+
- If empty, it means the server is missing protocol information, and the client should use `ID` and `Addrs` to connect to the peer and use the [libp2p identify protocol](https://github.com/libp2p/specs/tree/master/identify) to learn about supported ones.
242
+
202
243
## Known Transfer Protocols
203
244
204
245
This section contains a non-exhaustive list of known transfer protocols (by name) that may be supported by clients and servers.
0 commit comments