Difference between revisions of "LibP2P"
From Organic Design wiki
m (Make page a stub.) |
(Add PubSub section.) |
||
| Line 5: | Line 5: | ||
* Specification: [https://github.com/libp2p/specs/blob/master/pnet/Private-Networks-PSK-V1.md Private Networks PSK V1] | * Specification: [https://github.com/libp2p/specs/blob/master/pnet/Private-Networks-PSK-V1.md 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. | ||
Revision as of 07:58, 7 September 2022
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.




