-
p2p network composed of four elements
- Each node identified by
public key
- Hash of small data structure containing RSA, ed25519, ecp256k1, etc
Peer Discovery
system, joining- Discover nodes on local network, DNS, DNS-SD
- Bootstrap node
pubsub
to broadcast eventDHT
to store data
- Each node identified by
-
p2p connection setup steps
- open a connection
- negotiate encryption protocol
- on top of encryption multiplexing protocol
- each high-level request opens up a substream
-
IPFS Content Addressing
- Find, Fetch, Authenticate
-
libp2p Process Addressing
- Find, Connect, Authenticate
-
Multi Address
- A Multiaddr is a self-describing network address and protocol stack that is used to establish connections to peers.
/ip4/80.123.90.4/TCP/5432
/ip6/[::1]/UDP/10560/quick
/unix//path/to/socket