# Mesh conformance vectors — v1 The `mesh/1` receipt profile, pinned to a deterministic reference serve. These vectors are generated by the reference implementation and are byte-stable; a conforming implementation (in any language) MUST reproduce them. ```text cargo run -p mesh-conformance --bin gen-vectors -- ../conformance/v1 ``` ## Files | File | What it pins | |---|---| | `meta.json` | profile (`mesh.receipt/1`), algorithm (`EdDSA`, COSE `-8`), steward `did:key`, steward public key, and the wedge metric name | | `reference/receipt.json` | the `mesh/1` wire projection of the reference receipt | | `reference/signed_core.hex` | the canonical det-CBOR signed core (what the envelope signs over) | | `reference/envelope.hex` | the sealed COSE_Sign1 envelope | ## The reference serve A steward (seed `[7;32]`) registers a four-tier fidelity cascade — `cache` (F0), `tiny` (F1), `merge` (F2), `frontier` (F4) — and serves a 64-token request with a floor of **F1** and a ceiling of **8 J**, metered by a `HwShunt` source reporting a fixed **3,200,000 µJ** span. The pinned outcome: - **Route:** `tiny` wins. `cache` is ruled out by the F1 floor; `merge` and `frontier` are ruled out by the 8 J ceiling. Every candidate and its reason is recorded. - **Energy:** `HwShunt`, `measured_uj = 3_200_000`. - **Wedge metric:** `uj_per_accepted_token = 3_200_000 / 64 = 50_000`. - **Chain:** genesis receipt (`sequence = 0`, no `prev`). ## Cross-language check Take `reference/signed_core.hex`, wrap it as a COSE_Sign1 `Signature1` structure per RFC 9052 (protected header `{1: -8, 4: }`, empty external AAD), sign with the steward key — and you MUST reproduce `reference/envelope.hex` byte for byte. The signed core is canonical det-CBOR (RFC 8949 §4.2.1): length-first key order, shortest integer form, no floats/booleans/nulls.