mirror of
https://github.com/ratspeak/microReticulum
synced 2026-11-22 23:10:38 +00:00
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.