Test vectors
Each file holds one case per line, in canonical JSON, with an id, the inputs, and the expected outputs.
Every value was computed by the oracle in tools/ and is checked again by tools/check.py; none is typed by hand.
| File | Tests | Chapter |
|---|---|---|
canonical-json.jsonl |
input_json, parsed with every number as an IEEE 754 double, and its canonical output. |
1.1 |
normalize.jsonl |
Normalization for hashing, and the SHA-256 of the result. | 1.4 |
ids.jsonl |
Minting payloads and node IDs; letter-first encodings of digests. | 4 |
notation.jsonl |
Each source's canonical linear form, or null when it is complex. | 5.4 |
projections.jsonl |
One-sentence runs: plain, normalized, strict and lossy projections, complex keys and the three text values. | 5.3 |
projection-groups.jsonl |
Which cases must share, or must differ in, a value. | 5.3 |
offsets.jsonl |
Code-point spans and their UTF-16 equivalents. | 1.5 |
hashes.jsonl |
Every node of a small document, its own content and its five values. | 5.1 |
addresses.jsonl |
How addresses parse; null for invalid ones. | 6.1 |
keyed.jsonl |
The team key and its ID, an HMAC text hash, page hashes, a page key, and what a non-holder can and cannot check. | 5.8 |
fingerprints.jsonl |
Page inputs, the stamp rules that removed lines, the fingerprint text and the fingerprint. | 7.1 |
merkle.jsonl |
Receipt items and their RFC 6962 roots. | 8.5 |
signatures.jsonl |
The RFC 8032 test vector, and a receipt's record hash, payload and signature. | 8.4 |
spotcheck.jsonl |
Seed payloads, seeds, sample sizes and samples. | 8.8 |
bounds.jsonl |
Clopper–Pearson bounds as reported. | 8.9 |
alignment.jsonl |
Two readings, their pairs and their suspects. | 5.6 |
corrections.jsonl |
Each operation and refusal on a small document: the state before, the correction, and the record and state after, or the rule. | 11 |
resolve.jsonl |
Anchors made at revision 0 and how each resolves against a fixture package. | 6.5 |
rights.jsonl |
Stage checks with policies and expiry, the combining rule, and backend conditions. | 14 |
grading.jsonl |
Exercises, submissions and grades. | 19.4 |