ERC-8404 Recomputable verification receipt (Recomputable Verification Receipts)
Draft · Other · created 2026-08-29
Defines a six-field receipt that pins the claim, evidence, verification rule, and result each to a hash, so that anyone can independently re-run the same verification procedure and check whether the same result is produced.
Why it is needed
A stored boolean, a verifier's signature, or a report digest alone cannot reveal exactly what was verified. It does not show which claim was evaluated against which evidence bundle, under which procedure and byte encoding, or under which external context. As a result, different implementations may actually be evaluating different inputs, or interpreting the same data differently, while appearing to agree on the surface. Two distinct questions also commonly get conflated: 'what did the verification procedure conclude' versus 'can an independent implementation run the same procedure and re-derive the same canonical result.' This is especially problematic when Ethereum apps exchange off-chain verification results or selectively record their digests on-chain. An on-chain anchor only proves inclusion or ordering of the receipt bytes; it does not prove that the semantic result committed within it is reproducible.
In depth
The receipt's six fields
A receipt must be a JSON object with exactly six members: claimDigest, evidenceSetDigest, verificationProfileDigest, outcome, reasonCode, and resultDigest; no other members are allowed. The four digest members represent SHA-256 as 64-character lowercase hexadecimal without a prefix. outcome must be one of the three verification results, and reasonCode must be a member of the reason code namespace committed by that verification profile. The receipt is accompanied by the claim, the evidence set descriptor and payloads, the verification profile package, and the canonical result object, but does not contain their content directly.
The three verification outcomes
VERIFIED means the proposition defined by the profile is satisfied under the committed evidence closure; REFUTED means that proposition is refuted. UNVERIFIABLE means the procedure completed and produced an identified indeterminate result that is neither VERIFIED nor REFUTED; it can be used not only for missing evidence but for any indeterminate state the profile explicitly defines, such as insufficient quorum, ambiguity, or an undecidable relation. For every outcome, the profile must define the exact conditions and reason code.
Separation of recomputation status and verification outcome
Recomputation status is not a seventh field of the receipt but an output produced by applying the recomputation procedure to the receipt and supplied dependencies. REPRODUCED holds only when the identifiers of the candidate claim, evidence set, profile, and canonical result all match the receipt's commitments. DIVERGED applies when all necessary dependencies are present and evaluation completed but some identifier differs; CANNOT_RECOMPUTE applies when a required profile dependency or a payload committed as PRESENT cannot be obtained, or the obtained bytes do not match the fixed pin. A result of UNVERIFIABLE can also be REPRODUCED, but CANNOT_RECOMPUTE must not be changed to another status or default to false.
Canonical byte encoding rvr-canonical-json-v0
All JSON used to compute identifiers is normalized under this rule. Only null, booleans, strings, arrays, and objects are allowed; numbers are entirely forbidden, so quantities such as lengths are expressed as decimal strings with no leading zero. Duplicate keys and unpaired surrogates are rejected, Unicode normalization is not applied, object keys are sorted in ascending order by Unicode scalar value, and array order and duplicates are preserved as is. Encoding is UTF-8, applied exactly once, with no whitespace; string escapes are limited to those defined in the table, and slashes, U+2028, and U+2029 are kept literal. claimDigest, verificationProfileDigest, and resultDigest are computed as SHA-256 over these bytes.
Evidence set descriptor
An evidence set descriptor has exactly two fields, schema and members; members is a non-empty array whose entries have unique ids. A PRESENT member has exactly id, status, mediaType, byteLength, and digest, and these must match the actual payload bytes' length and SHA-256. If that payload cannot be obtained, the descriptor itself remains valid, but recomputation must report CANNOT_RECOMPUTE with evaluationPerformed set to false, and evaluation must not be run. An UNAVAILABLE member has only id, status, and reasonCode, and must not have a payload. Every input that could affect the result must either be included in this evidence closure or identified via an immutable commitment defined by the profile; ambient inputs that affect the result are prohibited.
Authority of the verification profile
The verification profile is the sole authority on meaning; a producer implementation, signer, or registry does not gain authority merely by having issued a receipt. A profile is an rvr-canonical-json-v0 object that must include a unique profileId, an exact verification specification, the proposition each outcome establishes, a conformance vector set, the canonical byte rule, the receipt/claim/evidence-set/result contracts, the result hash and receipt projection rules, the three reason code namespaces (verification, recomputation, gateRejections), dependency resolution rules, and required external context commitments. A signature cannot override profile mismatches, closure failures, contradictory projections, or outcome divergence.
Dependency resolution: hash first, parse second
A recomputer resolves dependencies only relative to the explicitly supplied profile package root, using relative POSIX paths rather than URLs or working-directory paths. Empty segments, single dots, double dots, backslashes, and colons are forbidden, and even after resolving symbolic links the result must remain inside the package root. The only permitted order is: resolve under the root, read the bytes once, check them against the committed SHA-256, and only then parse or use those verified bytes. Bytes may not influence verification or evaluation before the digest matches, and re-reading the same path after verification to obtain different bytes is also forbidden.
The ten-step recomputation procedure
The receipt and the general profile envelope are strictly parsed, rejecting duplicate keys, forbidden numbers, and unpaired surrogates, after which the verificationProfileDigest is recomputed and checked against the receipt. Next, required profile dependencies and evidence payloads committed as PRESENT are resolved under the hash-first rule, returning CANNOT_RECOMPUTE on failure. The original receipt's result identifiers and projections are verified, the candidate evidence closure is validated, claimDigest and evidenceSetDigest are recomputed, the profile's deterministic procedure is run to derive a single canonical result, and resultDigest is recomputed. If all four identifiers match the receipt, the status is REPRODUCED; if evaluation completed but they differ, it is DIVERGED, with a new outcome and reasonCode recorded as diagnostic data. This ERC is still at Draft stage, and its detailed rules may change or discussion may be discontinued.
Things to watch out for
- Falsely reported UNAVAILABLE status: A producer can falsely commit evidence as UNAVAILABLE. Reproduction only proves that the result was correctly derived from that descriptor, not the historical fact that the evidence was actually unobtainable.
- Signatures and on-chain anchors do not guarantee meaning: A signature authenticates an artifact, and an on-chain transaction only pins its bytes; neither proves that the semantic result is correct or reproducible.
- Indeterminate judgments cannot be reproduced: An indeterminate judgment must not be marked REPRODUCED merely because another implementation produced a similar statement or roughly the same determination.
- Mutable external context: Live RPC responses, registries, clocks, mutable policies, and model or resolver outputs must not affect a reproducible result unless the profile pins them to an immutable snapshot with an exact interpretation rule.
- Dependency substitution and TOCTOU: If a schema or specification is applied before the digest is checked, substituted bytes can influence verification, and re-reading after verification allows a time-of-check/time-of-use substitution. The hash must always be checked first, and parsing must use only those same verified bytes afterward.