Expand description
Node-id derivation and the rendezvous wire Message codec.
Enums§
- Message
- A rendezvous/relay control message. See the 2b spec for direction/semantics.
Functions§
- compute_
register_ mac - Compute a 128-bit BLAKE2s-MAC for authenticated rootless rendezvous registration.
- decode
- Parse one datagram into a
Message, orNoneif malformed/truncated. - encode
- Serialize
msgontoout(appends; caller clears if reusing). - node_id
- Derive a node’s rendezvous id from its X25519 public key.
- verify_
register_ mac - Constant-time verification of
macagainst the expected BLAKE2s-MAC.
Type Aliases§
- NodeId
- A rendezvous identity:
BLAKE2s(DOMAIN || pubkey)[..16]. Distinct domain fromyipd’snode_addrso the two derivations never coincide.