Expand description
Bootstrap handoff types.
These types model the boundary between an external rendezvous/bootstrap runtime and the core FIPS transport/handshake stack. The rendezvous side owns Nostr/STUN/UDP hole punching; once a direct UDP path is established, it hands the live socket and selected remote endpoint to FIPS so the existing Noise/FMP transport path can take over.
Modules§
Structs§
- Bootstrap
Handoff Result - Result of handing an established traversal session into FIPS.
- Established
Traversal - Established UDP traversal ready to be handed into FIPS.
Constants§
- PUNCH_
ACK_ MAGIC - Punch-probe-ack magic (“NPTA”, network byte order). Same filter as
PUNCH_MAGIC. - PUNCH_
MAGIC - Punch-probe magic (“NPTC”, network byte order). First byte
0x4Ecollides with FMP’s prefix-version high-nibble check, so the UDP transport silently filters packets carrying this magic to keep post-adoption handshake logs clean. Defined at the top-leveldiscoverymodule so the UDP filter and the nostr submodule’s punch sender share the same constant.
Functions§
- is_
punch_ packet - Returns
trueif the first four bytes ofdatamatch a punch-probe or punch-ack magic. Used by the UDP transport’s receive loop to silently drop stray probes that arrive on an adopted socket after the remote peer’s punch attempt has already timed out.