Files
DeFiDude fb76b6707b Add test_lxmf_codec: 10 LXMF packing/unpacking/signing tests
New test suite validating the LXMF message codec on native platform:
1. testPackContentRoundtrip — fixarray(4) structure
2. testPackContentBinEncoding — title/content as bin (0xC4), not str
3. testPackFullOpportunistic — wire: [src:16][sig:64][packed]
4. testPackFullDirect — wire: [dest:16][src:16][sig:64][packed]
5. testUnpackFull — pack → unpack → verify fields
6. testSignatureVerification — Ed25519 sign/verify roundtrip
7. testMessageIdComputation — deterministic SHA256 hash
8. testEmptyTitleAndContent — edge case: empty strings
9. testUnicodeContent — UTF-8 content round-trip
10. testMaxSizeContent — 280 bytes (near opportunistic limit)

All 10 tests pass on native17. Uses same deterministic seeds as
test_cross_compat for consistency.
2026-03-24 15:38:19 -06:00
..