Expand description
Bounded standard Handshake P2P session for light clients.
The state machine is runtime independent: socket adapters exchange
hns-p2p-wire frames and provide an explicit clock. Only standard HSD
version/verack, ping/pong, headers, name-proof, and wallet-filter traffic is
admitted here. Chain and wallet evidence remains authoritative only after
local verification. Experimental HIP sessions remain separate.
Structs§
- Expired
Requests - Requests that exceeded their explicit deadline.
- Peer
Config - Standard-peer session bounds and admission.
- Peer
Connection - One standard peer session bound to a blocking byte stream.
- Peer
Metadata - Admitted remote version metadata.
- Peer
Session - One bounded standard HSD peer session.
Enums§
- Peer
Error - Standard peer handshake, correlation, or deadline failure.
- Peer
Event - Event emitted by one admitted inbound frame.
- Peer
State - Peer session phase.
- Request
Kind - Response-bearing request category.
- Wallet
Peer Event - Standard wallet traffic admitted after version/verack.
Constants§
- DEFAULT_
HANDSHAKE_ TIMEOUT_ SECONDS - Default complete version/verack deadline.
- DEFAULT_
MAX_ CLOCK_ SKEW_ SECONDS - Default maximum peer wall-clock skew.
- DEFAULT_
REQUEST_ TIMEOUT_ SECONDS - Default header/proof/ping response deadline.
- MAX_
PENDING_ PEER_ FRAMES - Maximum decoded frames retained between caller polls.
- PEER_
READ_ BUFFER_ SIZE - Bounded stack read used by the standard stream adapter.
Functions§
- light_
wallet_ version - Construct the standard version packet for a non-serving light wallet.