Expand description
Re-exports§
pub use dht_lookup::CandidateInsertion;pub use dht_lookup::IterativeLookup;pub use dht_lookup::LookupConfig;pub use dht_lookup::LookupError;pub use dht_lookup::LookupKey;pub use dht_lookup::LookupNode;pub use dht_lookup::LookupPeerState;pub use dht_lookup::LookupProgress;pub use dht_lookup::LookupQuery;pub use dht_lookup::LookupQueryOutcome;pub use dht_lookup::LookupRunError;pub use dht_lookup::LookupTermination;pub use dht_lookup::collect_after_first_with_grace;pub use dht_lookup::run_iterative_lookup;pub use dht_lookup::xor_distance;pub use identity::peer_id::PeerId;
Modules§
- client_
routing - Portable client routing report and witnessed-close-group policy. Client-side peer report selection and witness normalization. Transport I/O, node admission, and routing maintenance remain outside this module.
- dht_
lookup - Transport-independent iterative DHT lookup, shared by native and browser clients. Transport-independent Kademlia iterative lookup scheduling.
- identity
- User identity and privacy system (public — accessed via path by saorsa-node). Cryptographic Identity Module
- signed_
address - Portable signed address publications and locally verified provenance. Portable owner-signed address publications. Forward the original signed record; filtering and reachability normalization belong to derived views.
Structs§
- Adaptive
DhtConfig - Configuration for the AdaptiveDHT layer
- Bytes
- Payload type accepted by
P2PNode::send_message, re-exported so callers need not depend on thebytescrate to name it. A cheaply cloneable and sliceable chunk of contiguous memory. - Cached
Close Group Peer - A peer in the persisted close group cache.
- Close
Group Cache - Persisted close group snapshot with trust scores.
- DHTNode
- DHT node representation for network operations.
- IPDiversity
Config - Configuration for IP diversity enforcement at two tiers: exact IP and subnet.
- MlDsa65
- ML-DSA-65 implementation using FIPS-certified algorithm
- Multi
Addr - Composable, self-describing network address with an optional
PeerIdsuffix. - Node
Config - Configuration for a P2P node
- P2PNode
- Main P2P network node that manages connections, routing, and communication
- Rejected
Supplemental Address - A supplemental endpoint that could not be registered.
- Responder
View - One responder’s self-inclusive closest-K view.
- Supplemental
Address Registration - Result of replacing the node’s supplemental address registration.
- Transport
Address Record - One address in the extensible V2 address plane.
- Trust
Engine - Local trust engine based on direct peer observations.
- Trust
Record - A single peer’s trust record for serialization.
- WebRtc
Certificate Hash - A stable SHA-256 DTLS-certificate digest encoded as a multiaddr
certhashvalue. - WebRtc
Direct Addr - Validated WebRTC Direct endpoint carried by
TransportAddr. - Witnessed
Close Group - Witnessed close-group selection result for a target key.
Enums§
- Address
Type - Address classification for priority ordering and staleness eviction.
- DhtNetwork
Event - DHT network events
- Known
Reachability - A reachability class understood by this implementation.
- Known
Transport - A transport understood by this implementation.
- Node
Mode - Operating mode of a P2P node.
- P2PEvent
- Network events that can occur in the P2P system
- Peer
Route Kind - Coarse classification of the route by which a peer’s traffic reached us.
- Supplemental
Address Rejection - Reasons a supplemental endpoint can be rejected.
- Trust
Event - Trust-relevant events for peer scoring.
Constants§
- MAX_
TRANSPORT_ ADDRESS_ PAYLOAD - Maximum encoded address payload accepted from the network.
- MAX_
TRANSPORT_ ADDRESS_ RECORDS - Maximum number of records accepted in one complete address set.
Type Aliases§
- Key
- DHT key type (256 bits).