Expand description
Nym mixnet transition bearer framing and deterministic loopback carrier.
Encapsulates QFrames into Sphinx-compatible datagram envelopes. Bounded, zero-heap in hot path. Labelled transition carrier (not Native Independent). Authoritative QdnfError variants mapped (Closed, NoRoute, WouldBlock, Capacity).
Structs§
- NymSimulated
Bearer - Deterministic, zero-heap in-memory simulated Nym mixnet bearer. Used for pure integration testing of the QSession handshake over Nym.
Constants§
- NYM_
ENVELOPE_ VERSION - Current envelope protocol version.
- NYM_
HEADER_ LEN - Header length: magic(4) + version(1) + payload_len(2) + sender_len(1) + sender(32) = 40 bytes.
- NYM_
MAGIC - 4-byte magic for Nym mixnet envelopes.
- NYM_
SPHINX_ MTU - Sphinx maximum payload size for standard Nym packets (1,024 bytes).
Functions§
- decapsulate_
nym - Decapsulate a Nym Sphinx payload envelope into a QFrame and sender locator.
- encapsulate_
nym - Encapsulate a QFrame into a Nym Sphinx payload envelope.