Expand description
Saorsa transport primitives re-exported from saorsa_core.
Use ant_protocol::transport::… in downstream crates instead of a
direct saorsa-core dependency.
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.
- 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§
- Core
Node Config - Configuration for a P2P node
- DHTNode
- DHT node representation for network operations.
- IPDiversity
Config - Configuration for IP diversity enforcement at two tiers: exact IP and subnet.
- Iterative
Lookup - Pull-based, transport-independent Kademlia lookup state machine.
- Lookup
Config - Iterative lookup limits shared by all transports.
- MlDsa65
- ML-DSA-65 implementation using FIPS-certified algorithm
- Multi
Addr - Composable, self-describing network address with an optional
PeerIdsuffix. - Node
Identity - Core node identity with cryptographic keys
- P2PNode
- Main P2P network node that manages connections, routing, and communication
- PeerId
- Peer ID derived from public key (256-bit).
- Responder
View - One responder’s self-inclusive closest-K view.
- Transport
Address Record - One address in the extensible V2 address plane.
- Witnessed
Close Group - Witnessed close-group selection result for a target key.
Enums§
- Address
Type - Address classification for priority ordering and staleness eviction.
- Known
Reachability - A reachability class understood by this implementation.
- Lookup
Query Outcome - Result of one transport query in an iterative lookup batch.
- Lookup
RunError - Failure produced while the shared engine is driving a transport adapter.
- Lookup
Termination - Final reason an iterative lookup stopped.
- 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.
Constants§
- ADDRESS_
V2_ CAPABILITY - Browser RPC capability requiring owner-signed V2 address records. This does not select native DHT protocols; native peers send both versions.
- DEFAULT_
ALPHA_ VALUE - Default concurrent queries in one lookup round.
- DEFAULT_
K_ VALUE - Default Kademlia bucket and lookup result count.
- ITERATION_
GRACE_ TIMEOUT_ SECS - Additional wait for remaining queries after the first response in a round. Bounds slow dial cascades while allowing already-connected peers to reply.
- LOOKUP_
TIMEOUT_ SECS - Overall lookup budget shared by native and browser clients, in seconds. Request and round grace timeouts still apply inside this ceiling.
Traits§
- Lookup
Node - A lookup candidate with a stable 256-bit peer identity.
- Lookup
Query - Transport and response-validation boundary used by the shared DHT walk.
Functions§
- collect_
after_ first_ with_ grace - Collect a concurrent query batch without letting slow stragglers hold an iterative lookup round open indefinitely.
- run_
iterative_ lookup - Run an iterative lookup to completion through a transport/query adapter.
- xor_
distance - Compute the unsigned 256-bit XOR distance used for Kademlia ordering.
Type Aliases§
- Lookup
Key - Canonical 256-bit DHT key or peer identity.