Expand description
Shape-dispatched peer frame families: the DHT wire and the PEX wire.
These travel over the mTLS peer transport but are NOT JSON-RPC method
calls — they are dispatched on a type discriminator, not a method field,
so they are modeled separately from crate::method::Method. Both belong to
the Peer tier.
- The DHT wire (
DhtRequest/DhtResponse) is the Kademlia content-location protocol:find_node,find_providers,add_provider,ping. - The PEX wire (
PexMessage) is peer-exchange:pex_handshake,pex_snapshot,pex_delta,pex_error.
Structs§
- DhtNode
- A DHT node’s routing entry: a
peer_id(32-byte, hex or base64 per the transport) with its addresses and record TTL. - PexPeer
- A PEX peer entry: a
peer_idwith addresses, flags, and provenance.
Enums§
- DhtRequest
- A DHT request frame, dispatched on
type. - DhtResponse
- A DHT response frame.
- PexMessage
- A PEX message frame, dispatched on
type.