LMXF-specification/tools
2026-06-06 09:41:48 -07:00
..
LXMF After accomplishing Task 2, see Codex_Response... for details. 2026-06-06 09:41:48 -07:00
make_test_vectors.pl After accomplishing Task 2, see Codex_Response... for details. 2026-06-06 09:41:48 -07:00
README.md After accomplishing Task 2, see Codex_Response... for details. 2026-06-06 09:41:48 -07:00
verify_examples.pl After accomplishing Task 2, see Codex_Response... for details. 2026-06-06 09:41:48 -07:00

LXMessage Test-Vector Tooling

The scripts in this directory verify the implementation-derived LXMessage packing behavior described in Code_Response_1.md.

They use only Perl core modules. The local LXMF::MessagePack module implements the MessagePack subset needed to generate the vectors and parse their complete payloads.

Generate deterministic vectors:

perl tools/make_test_vectors.pl

Verify the vectors:

perl tools/verify_examples.pl

The vectors confirm:

  • the 16-byte destination hash, 16-byte source hash, and 64-byte signature positions;
  • payload order [timestamp, title, content, fields, optional_stamp];
  • float64 timestamp and binary title/content/stamp encodings;
  • the message ID calculation;
  • exclusion of the optional stamp from the message ID and signature input.

The signature bytes are deterministic placeholders. These vectors do not claim to verify Ed25519 signing or signature validation.