Skip to main content

Module wire

Module wire 

Source

Structs§

DestinationHash
TransportId
WireAddress
WirePacketHeader
Note that transport_id.is_some() is the Type-1/Type-2 distinction, so the two can never disagree.

Enums§

ContextFlag
DestinationType
IfacFlag
Every writer packs Open because that is what RNS 1.4.2 does at construction. IFAC is an interface-boundary transform, where Transport.transmit masks the raw packet and flips this flag per interface key, and Transport.inbound unmasks or drops.
PacketType
PropagationType
WireContext
The trailing context byte: a sub-type tag the engine routes on. Exhaustive over the values RNS defines, plus Unknown(u8) so an unrecognised byte round-trips unchanged (RNS preserves unknown context bytes). Decoding only ever yields Unknown for bytes outside the named set, so a parsed value is always canonical.
WireError

Constants§

ANNOUNCE_PUBLIC_KEY_BYTE_LEN
BROADCAST_MDU
RNS 1.4.2 Reticulum.MDU: the most payload bytes one packet may carry once the worst-case header and minimum IFAC are reserved.
BROADCAST_MTU
RNS 1.4.2 Reticulum.MTU: the maximum byte size of one packet on the broadcast plane (announces, path requests, un-linked Singles), which peers must agree on. A wire-protocol invariant, permanently 500 even on fat pipes; the per-link MTU a LINKREQUEST negotiates is separate.
DOTTED_NAME_HASH_BYTE_LEN
HEADER_MAX_LEN
RNS 1.4.2 Reticulum.HEADER_MAXSIZE. The type-2 (transport-routed) header: flags, hops, transport id, destination, context. Outbound payload budgets reserve this even when emitting type-1, because a relay re-emits the packet with the transport id added.
HEADER_MIN_LEN
The type-1 (direct, no transport id) header: flags, hops, destination, context
IFAC_MIN_LEN
RNS 1.4.2 Reticulum.IFAC_MIN_SIZE: the smallest per-interface access-code overhead a packet may gain; reserved in every payload budget like the transport header.
MAX_HOP_COUNT
RNS 1.4.2 Transport.PATHFINDER_M: packets beyond this hop count are outside reach. A wire-protocol invariant, not a sizing knob.
RATCHET_BYTE_LEN
SIGNATURE_BYTE_LEN
TRUNCATED_HASH_BYTE_LEN