mirror of
https://github.com/vacp2p/specs.git
synced 2026-01-08 23:08:09 -05:00
relay: update multicodec and multiaddr
This commit is contained in:
@@ -40,17 +40,15 @@ The transport is the means of *establishing* and *accepting* connections,
|
||||
and the swarm protocol is the means to *relaying* connections.
|
||||
|
||||
```
|
||||
+-------+ /ip4/.../tcp/.../ws/ipfs/QmRelay +---------+ /ip4/.../tcp/.../ipfs/QmTwo +-------+
|
||||
+-------+ /ip4/.../tcp/.../ws/p2p/QmRelay +---------+ /ip4/.../tcp/.../p2p/QmTwo +-------+
|
||||
| QmOne | <------------------------------------> | QmRelay | <-----------------------------------> | QmTwo |
|
||||
+-------+ (/ipfs/relay/circuit multistream) +---------+ (/ipfs/relay/circuit multistream) +-------+
|
||||
+-------+ (/libp2p/relay/circuit multistream) +---------+ (/libp2p/relay/circuit multistream) +-------+
|
||||
^ +-----+ ^
|
||||
| | | |
|
||||
| /p2p-circuit/QmTwo | | |
|
||||
+--------------------------------------------+ +-------------------------------------------+
|
||||
```
|
||||
|
||||
TODO: the stream codec should be called `/libp2p/relay/circuit` instead.
|
||||
|
||||
Note: we're using the `/p2p` multiaddr protocol instead of `/ipfs` in this document.
|
||||
`/ipfs` is currently the canonical way of addressing a libp2p or IPFS node,
|
||||
but given the growing non-IPFS usage of libp2p, we'll migrate to using `/p2p`.
|
||||
|
||||
Reference in New Issue
Block a user