Expand description
Networking functionality of Subspace Network, primarily used for DSN (Distributed Storage Network).
Re-exports§
pub use utils::multihash::Multihash;
pub use utils::PeerAddress;
pub use libp2p;
Modules§
- Custom libp2p protocols
- Miscellaneous utilities for networking.
Structs§
Node
configuration.- Helper structure. It wraps Kademlia distance to a given peer for heap-metrics.
- Handles networking parameters. It manages network parameters set and its persistence.
- Configuration for
KnownPeersManager
. - Implementation of a network node on Subspace Network.
- Runner for the Node.
- Defines the event triggered when the peer address is removed from the permanent storage.
- Topic subscription, will unsubscribe when last instance is dropped for a particular topic.
- Weak counterpart of
Node
Enums§
- Errors that might happen during network creation.
- Defines errors for
get-closest-peers
operation. - Defines Kademlia mode
- Networking parameters persistence errors.
- Represents Kademlia events (RoutablePeer, PendingRoutablePeer, UnroutablePeer).
- Defines errors for
send-request
operation. - Defines errors for
subscribe
operation.
Traits§
- Defines operations with the networking parameters.
- Trait to be implemented on providers of local records
Functions§
- Create a new network node and node runner instances.
- Converts public key from keypair to PeerId. It serves as the shared PeerId generating algorithm.