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.
Re-exports§
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§
- Blocker
- Interface for blocking other peers.
- Checked
Sender - Interface for sending messages to
Recipientsthat are not currently rate-limited. - Limited
Sender - Interface for constructing a
CheckedSenderfrom a set ofRecipients, filtering out any that are currently rate-limited. - 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.
- Unlimited
Sender - Interface for sending messages to a set of recipients without rate-limiting restrictions.