Skip to main content

Crate commonware_p2p

Crate commonware_p2p 

Source
Expand description

Communicate with authenticated peers over encrypted connections.

§Status

Stability varies by primitive. See README for details.

Re-exports§

pub use types::Address;
pub use types::Ingress;

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.).
types
Shared address types for p2p networking.
utils
Utility functions for exchanging messages with many peers.

Enums§

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

Traits§

AddressableManager
Interface for managing peer set membership (where peer addresses are known).
Blocker
Interface for blocking other peers.
CheckedSender
Interface for sending messages to Recipients that are not currently rate-limited.
LimitedSender
Interface for constructing a CheckedSender from a set of Recipients, filtering out any that are currently rate-limited.
Manager
Interface for managing peer set membership (where peer addresses are not known).
Provider
Interface for reading peer set information.
Receiver
Interface for receiving messages from arbitrary recipients.
Sender
Interface for sending messages to a set of recipients.
UnlimitedSender
Interface for sending messages to a set of recipients without rate-limiting restrictions.

Type Aliases§

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