After accomplishing Task 2, see Codex_Response... for details.
This commit is contained in:
parent
fab12ad9bf
commit
d483d40d5c
16 changed files with 888 additions and 0 deletions
32
tools/README.md
Normal file
32
tools/README.md
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
# 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.
|
||||
Loading…
Add table
Add a link
Reference in a new issue