Skip to main content

Module peer

Module peer 

Source
Expand description

Peer Management

Two-phase peer lifecycle:

  1. PeerConnection - Handshake phase, before identity is verified
  2. ActivePeer - Authenticated phase, after successful Noise handshake

The PeerSlot enum represents either phase, enabling unified storage while maintaining type safety for phase-specific operations.

Structs§

ActivePeer
A fully authenticated remote FIPS node.
PeerConnection
A connection in the handshake phase, before authentication completes.

Enums§

ConnectivityState
Connectivity state for an active peer.
HandshakeState
Handshake protocol state machine.
PeerError
Errors related to peer operations.
PeerSlot
A slot in the peer table, representing either connection or active phase.
PromotionResult
Result of attempting to promote a connection to active peer.

Functions§

cross_connection_winner
Determine winner of cross-connection tie-breaker.