Crate commonware_p2p

Crate commonware_p2p 

Source
Expand description

Communicate with authenticated peers over encrypted connections.

§Status

commonware-p2p is ALPHA software and is not yet recommended for production use. Developers should expect breaking changes and occasional instability.

Modules§

authenticated
Communicate with a fixed set of authenticated peers over encrypted connections.
simulated
Simulate networking between peers with configurable link behavior (i.e. drops, latency, corruption, etc.).
utils
Utility functions for exchanging messages with many peers.

Enums§

Recipients
Enum indicating the set of recipients to send a message to.

Traits§

Blocker
Interface for blocking other peers.
Manager
Interface for registering new peer sets as well as fetching an ordered list of connected peers, given a set id.
Receiver
Interface for receiving messages from arbitrary recipients.
Sender
Interface for sending messages to a set of recipients.

Type Aliases§

Channel
Alias for identifying communication channels.
Message
Tuple representing a message received from a given public key.