RSW-0003 vectors package
Public TEST key only (seed 000102…1f): never use it in production. The key does not belong to Pablo Murad.
Test public key: ed25519:AOQQPP7TZYIL4HLQ3UMOOS6ATFT6JVRQTOSQ2XY53SDGIESVGG4A. Download everything as rsw-0003-vectors.zip.
The package was regenerated on November 23, 2026 from the specification text. The positive signed cartridge is byte-identical to the one delivered with the first draft. Expected results are normative expectations for a future complete validator, not the output of an official parser (none exists yet). Error codes are categories; identical diagnostic order is not required.
| ID | Cartridge | Expected state | Error | Construction | H_png |
|---|---|---|---|---|---|
| p1 | RSW-0003-exemplo.rsw.png | VERIFIED | — | Signed cartridge (the RSW-0003 appendix A example). | a5ff1a29… |
| p2 | p2-reformatted-manifest.rsw.png | VERIFIED | — | Readable manifest: other member order, equivalent escapes (\/, \u003c, surrogate pair). Same C, same signature, different H_png. | 5fd08fc3… |
| p3 | p3-unsigned.rsw.png | UNSIGNED | — | No public_key and no signature.sig. | 1571ee0d… |
| n1 | n1-altered-manifest.rsw.png | INVALID | SIGNATURE_MISMATCH | title changed after signing; signature.sig not updated. | a40d4875… |
| n2 | n2-altered-resource.rsw.png | INVALID | INTEGRITY_MISMATCH | index.md changed after signing; ZIP CRC-32 recomputed (ZIP is valid), files hash not updated. | 374bb83d… |
| n3 | n3-altered-signature.rsw.png | INVALID | SIGNATURE_MISMATCH | Lowest bit of S flipped (S stays below L). | 1bffe77c… |
| n4 | n4-truncated-signature.rsw.png | INVALID | INVALID_SIGNATURE_ENCODING | signature.sig truncated to 63 bytes. | d152041d… |
| n5 | n5-degenerate-key.rsw.png | INVALID | INVALID_PUBLIC_KEY | public_key is the identity point; R = identity, S = 0. The bare equation holds for any message, which is why RSW-0003 requires A != O and [L]A = O. | d6b9edc9… |
| n6 | n6-noncanonical-base32.rsw.png | INVALID | INVALID_PUBLIC_KEY | public_key ends in B (non-zero residual bits). The signature over this exact C is valid; only the encoding is wrong. | 694cf064… |
| n7 | n7-s-out-of-range.rsw.png | INVALID | INVALID_SIGNATURE_ENCODING | S replaced by S + L (non-canonical scalar). | d1f3476b… |
| n8 | n8-wrong-domain.rsw.png | INVALID | SIGNATURE_MISMATCH | Signed over "RSW/1:hosting-index" || 0x00 || C (the RSW-0006 index domain) instead of the cartridge-manifest domain. | 17f83c3c… |
Reference bytes
- canonical-manifest.json: C, the JCS form of the signed manifest
- message.bin (hex): M = "RSW/1:cartridge-manifest" || 0x00 || C
- public-key.txt · signature.hex · test-seed.hex · README.txt
Results and tests
- expected.json: H_png, expected state and error category of every cartridge
- tests/jcs-check.mjs: independent JCS check (Node.js 18+, no packages)
- tests/verify.go: independent signature check (Go standard library). It also shows that crypto/ed25519 accepts n5, which is why RSW-0003 requires its own key checks.
- README.txt: provenance and instructions