Skip to main content

Module packet

Module packet 

Source
Expand description

Packet mode (TF-0011) — Rust mirror of tools/tf-types-ts/src/core/packet.ts.

Structs§

FragmentOptions
LoraSimOptions
LoraSimResult
Packet
PacketFragmentHeader
PacketSignatureEnvelope
ReassembleResult
SignPacketArgs
VerifyPacketResult

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 optional rng_seed argument makes the result deterministic for tests.
verify_packet