Available on crate feature
pnet
only.Expand description
Implementation of the pnet protocol. Libp2p nodes configured with a pre-shared key can only communicate with other nodes with the same key.
Structs§
- Fingerprint
- A PreSharedKey fingerprint computed from a PreSharedKey
- Pnet
Config - Private network configuration
- Pnet
Output - The result of a handshake. This implements AsyncRead and AsyncWrite and can therefore be used as base for additional upgrades.
- PreShared
Key - A pre-shared key, consisting of 32 bytes of random data.
Enums§
- KeyParse
Error - Error when parsing a PreSharedKey
- Pnet
Error - Error when writing or reading private swarms