Test vectors
vectors/bundles.json holds the shared vectors. Each has:
| Field | Meaning |
|---|---|
name, description | What the vector exercises. |
bundle_hex | The bytes as received. |
device | Device state before the bundle arrives: state (unarmed or armed), device_id (or null), owner_keys, partner_key (or null), last_seq, pending_action, config (or null), awaiting_re_enrolment (true while waiting for a re-pair). Optional, each false or null when missing: owner_phone_secret and partner_phone_secret (true when set), partner_ready (true while ready for a partner key), waiting (the waiting change: bundle_hex and phone_approvals, a list of roles). |
now_ms | The device’s clock. |
expect | {"result":"accept"} or {"result":"reject","code":"<code from [Acceptance](verification.md#acceptance)>"}. An accept may carry "effect": immediate, delayed or waiting. It is present wherever the timing does not depend on the tightening classifier. |
vectors/classifier.json holds cases for step 8 and for the tightening classifier: changes (a current and a proposed config, and expect: tightening or loosening) and configs (a config and whether it is valid).
vectors/keys.json lists the public keys and key IDs of the test keys. See vectors/README.md for how the vectors are generated and how to regenerate them.
Both test suites MUST run every vector and get the expected result. A vector is only ever changed together with this document.