32 lines
948 B
Markdown
32 lines
948 B
Markdown
|
|
# 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:
|
||
|
|
|
||
|
|
```sh
|
||
|
|
perl tools/make_test_vectors.pl
|
||
|
|
```
|
||
|
|
|
||
|
|
Verify the vectors:
|
||
|
|
|
||
|
|
```sh
|
||
|
|
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.
|