LibP2P

From Organic Design wiki
Revision as of 07:58, 7 September 2022 by Saul (talk | contribs) (Add PubSub section.)
Cone.png This article or section is a stub. Stubs are articles that have not yet received substantial attention from the authors. They are short or insufficient pieces of information and require additions to further increase the article's usefulness. The project values stubs as useful first steps toward complete articles.


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.

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.