Expand description
Packet mode (TF-0011) — Rust mirror of
tools/tf-types-ts/src/core/packet.ts.
Structs§
- Fragment
Options - Lora
SimOptions - Lora
SimResult - Packet
- Packet
Fragment Header - Packet
Signature Envelope - Reassemble
Result - Sign
Packet Args - Verify
Packet Result
Functions§
- fragment_
packet - packet_
signing_ bytes - reassemble_
fragments - sign_
packet - simulate_
lora - Walk a list of packets through a one-way LoRa-style channel. Drops
packets per
packet_loss, accumulates latency proportional to size /bandwidth_bps. Pure simulation — no IO. The optionalrng_seedargument makes the result deterministic for tests. - verify_
packet