module

RNS::LinkLike

Minimal link protocol for Transport interaction. The full Link class (Task 5.2/5.3) will implement this module. For now, Transport uses this abstraction for link management.

Constants

ACTIVE = 2_u8
CLOSED = 4_u8
ECPUBSIZE = 32 + 32

ECPUBSIZE (matching Python RNS.Link.ECPUBSIZE = 32+32 = 64 bytes)

ESTABLISHMENT_TIMEOUT_PER_HOP = 6.0

Establishment timeout per hop (matching Python RNS.Link.ESTABLISHMENT_TIMEOUT_PER_HOP)

HANDSHAKE = 1_u8
PENDING = 0_u8

Link states (matching Python RNS.Link constants)

STALE = 3_u8
STALE_TIME = 720.0

Stale time (matching Python RNS.Link.STALE_TIME)

Instance methods

attached_interface
Source
destination_hash
Source
expected_hops
Source
initiator?
Source
receive(packet : Packet)
Source
status
Source
status=(value : UInt8)
Source
validate_proof(packet : Packet)
Source