Crate libp2p::pnet

source ·
Expand description

The pnet protocol implements Pre-shared Key Based Private Networks in libp2p, as specified in the spec

Libp2p nodes configured with a pre-shared key can only communicate with other nodes with the same key.

Structs

A PreSharedKey fingerprint computed from a PreSharedKey
Private network configuration
The result of a handshake. This implements AsyncRead and AsyncWrite and can therefore be used as base for additional upgrades.
A pre-shared key, consisting of 32 bytes of random data.

Enums

Error when parsing a PreSharedKey
Error when writing or reading private swarms