LibP2P
From Organic Design wiki
Private Networks
LibP2P has the concept of private networks that are created by a pre-shared secret key (PSK) which encrypts all traffic leaving the nodes. (This is underneath the standard LibP2P stack so traffic is encrypted twice.) This PSK is also called a swarm key and is also used by IPFS.
- Specification: Private Networks PSK V1
PubSub
LibP2P currently has two implementations of PubSub, a naive FloodSub and a GossipSub. FloodSub just floods the network without doing anymore work to reduce waste where GossipSub as the name suggest uses gossip.
Peer Discovery
LibP2P's PubSub has a special topic for peer discovery this works by each peer publishing their own addresses every so often.




