Files
microReticulum/src
DeFiDude 6f3c08de93 Add LXMFMessage codec to microReticulum library
Moves the LXMF message packing/unpacking/signing code from Ratdeck
into microReticulum as a shared library module. This enables:
- Native platform LXMF tests (pio test -e native17)
- Cross-implementation fixture validation
- Single source of truth for C++ LXMF wire format

The codec is adapted from Ratdeck's LXMFMessage.h/cpp with Arduino.h
dependency removed (replaced with cstdint for native platform support).

Wire format matches Python LXMF (LXMessage.py) and Rust (lxmf-core):
- Opportunistic: [src:16][sig:64][msgpack(ts, title, content, fields)]
- Direct: [dest:16][src:16][sig:64][msgpack(ts, title, content, fields)]
- Title/content encoded as MsgPack bin (0xC4/0xC5), not str

Note: Ratdeck will be updated to #include <LXMFMessage.h> from the
library (removing its local copy) after this change is pushed.
2026-03-24 15:31:05 -06:00
..
2025-08-24 20:52:38 -06:00
2026-03-06 17:25:41 -07:00