Compute receipts · security note

What the RISC Zero 3.1.0 fix changed for OCG receipts

On 10 November 2026 RISC Zero released version 3.1.0 of its zkVM to fix a critical flaw in how Groth16 receipts are verified. We use that zkVM to produce the optional compute receipts attached to OpenChainGraph artifacts, so we moved our prover to 3.1.0 and sealed those receipts again. That work was completed on 30 November 2026 for every live node except 27.

The flaw was in how receipts are checked. The receipts themselves were sound, and the check every artifact relies on never involved a receipt. A flaw of this kind does not by itself call for regenerating receipts. Part 6 explains why, and why we probably would not regenerate them for a similar issue in future.

This page is for risk, audit and engineering readers who rely on OCG artifacts. It covers what the flaw was, what we replaced, which check every artifact depends on, and how much an older receipt can still tell you. For background on the proof system itself, see how a Groth16 receipt works.

The short version

What each reader should do

Most readers need to do nothing. Two situations need a current receipt.

Risk

Usually nothing

  • If you check artifacts in the Artifact Verifier, the PASS rule is unchanged.
  • Act only if you rely on artifacts shared with their inputs withheld. Those need a receipt sealed on 3.1.0.
Audit

Don't cite a legacy receipt alone

  • A receipt labelled legacy is not evidence on its own. Pair it with a recomputed hash, or use its 3.1.0 replacement.
  • When you file a receipt, record its full imageId and the verifier's verdict, not just "verified".
Engineering

Pin the 3.1.0 values

  • Pin the 3.1.0 control root and BN254 control ID listed in Part 2.
  • Any gate that needs evidence should accept only a current verdict, and treat an imageId outside both lists as invalid.
  • If you copied our verifier, plan to copy it again when the old key is retired (Part 7).
Part 1 of 8

What RISC Zero fixed

A missing range check let one seal stand for more than one claim.

BEFORE · 3.0.x verifying key Genuine claim kernel K, output Y Substituted claim same seal, output Z Verifier pairing check verifies verifies The second pass is the flaw. AFTER · 3.1.0 verifying key Genuine claim kernel K, output Y Substituted claim same seal, output Z Verifier limbs in range verifies fails The substituted claim stops at the verifier.

A Groth16 receipt is a short proof of a statement such as "this program ran and produced this output". The statement is hashed into a digest, and the digest is cut into small pieces called limbs before the proof is tied to it. In two circuits, nothing checked that each limb stayed inside its allowed range. A digest could then be cut up in more than one valid way, and a second cutting could be arranged to stand for a different statement.

RISC Zero's advisory puts the consequence in one line: an attacker who can produce one valid Groth16 receipt can get an arbitrary claim past the verifier. That includes a different program identifier, a different output or a different exit code. The same release also repaired a hashing step inside the proof system and added constraints on data supplied by the host.

The repair needed a new trusted setup and a new verifying key. Receipts made with earlier versions do not verify under 3.1.0, and RISC Zero states that there is no workaround. Anyone relying on older receipts has to produce them again. The advisory does not mention any exploitation.

30 Oct 2026
RISC Zero publishes the 3.1.0 release candidate.
10 to 11 Nov
Version 3.1.0 ships. Advisory GHSA-g6qg-9j8p-7j87 is published and rated Critical.
26 to 27 Nov
Our prover moves to 3.1.0. Our in-browser receipt verifier gains the new verifying key and labels the old one as legacy.
28 to 29 Nov
Re-sealed receipts are published in batches.
30 Nov 2026
Remediation complete for every live node except 27 (count on 1 December 2026). Every other published receipt carries a 3.1.0 seal, and those 27 are handled separately.
Part 2 of 8

What an OCG artifact rests on

The pass verdict is a hash comparison that runs in your browser.

REQUIRED PATH · identical before and after Artifact parameters + output Your browser recomputes canonical JSON, WebCrypto SHA-256 Compare with stored execution_hash PASS OPTIONAL BRANCH · the only part that changed zk compute receipt risc0 3.0.5 · image a1a0bc89 risc0 3.1.0 · image bc07da19 Receipt panel separate, opt-in check does not feed the PASS verdict

The standard defines one required integrity check. A verifier takes the artifact's parameters and output, writes them as canonical JSON, hashes that with SHA-256 through the browser's WebCrypto API, and compares the result with the execution_hash stored in the artifact. The Artifact Verifier returns PASS when those two values are equal. It does not read the receipt to reach that verdict.

Two further layers can sit on top, and both are optional and off by default. A holder may sign the artifact with Ed25519 (section 16 of the specification). A node may also attach a zkVM compute receipt (section 18). The spec says an artifact with no compute proof is fully conformant. The receipt is also left out of the hash, so replacing a receipt cannot change an artifact's hash.

The link runs the other way too, and it is narrow. A receipt commits to the kernel's digest and to the output the run produced. A separate binding check confirms that this output equals the artifact's output_payload, that the image ID is one we published, and that the kernel digest matches the node's. The receipt does not commit to the execution hash or to the input parameters. The receipt and the hash check are two separate pieces of evidence, and nothing a receipt contains can change what the hash check reports.

Beforerisc0 3.0.5
Layer 3 · zk compute receiptverifier could be fooled
Optional. Groth16 seal checked against the 3.0.x verifying key, which let substituted claims verify.
Layer 2 · Ed25519 signatureoptional
Made in the holder's browser with WebCrypto.
Layer 1 · execution hashrequired
SHA-256 over canonical JSON of {policy_parameters, output_payload}.
Afterrisc0 3.1.0
Layer 3 · zk compute receiptre-sealed
Same statement about the same kernel and output. New seal, checked against the 3.1.0 verifying key.
Layer 2 · Ed25519 signatureunchanged
Outside the advisory and outside the re-seal.
Layer 1 · execution hashunchanged
No artifact hash moved and no kernel output moved.
ItemBeforeAfter
risc0-zkvm and r0vm3.0.53.1.0
risc0-groth163.0.43.0.6
Groth16 trusted setupearlier setup2026-10-20.1, new verifying key
Main guest image IDa1a0bc89…bc07da19…
All guest image IDs we publish78 (full lists below)
Control roota54dc85a…e6feef13…
BN254 control IDc07a6514…de81d091…
Our in-browser receipt verifierone verifying keycurrent key, plus the old key reported as legacy
Artifact execution hashidentical
Artifact Verifier pass rulestored hash equals recomputed hash
Full values to pin

Copy these exactly. A prefix is fine for reading a table, but it is not enough to pin a verifier. These are the values our in-browser verifiers check against.

Current verifier parameters (risc0 3.1.0)

  • control root  e6feef13db7aed4a731c7b0852de1f5c89b137726073f625d05333184d3a551d
  • BN254 control ID  de81d091ba14062acb5023b3b36deee95624e3fd47475cb7ff64aed5f9eac20a

Legacy verifier parameters (risc0 3.0.x)

  • control root  a54dc85ac99f851c92d7c96d7318af41dbe7c0194edfcc37eb4d422a998c1f56
  • BN254 control ID  c07a65145c3cb48b6101962ea607a4dd93c753bb26975cb47feb00d3666e4404

Guest image IDs sealed on 3.1.0 (current)

  • sha256:bc07da19c899768781e91e439961b7c4da40bb103fcedba161f93fb5ccaa6d68
  • sha256:ac3a298fcd811bc61e673fe5cfc04389cc1a17e15c6fe1c64881f2d25125d6f0
  • sha256:64e63b2e26119983ca729084d2997533a25e2b6c31058d9a069687a8f1e3e1e5
  • sha256:90e562f44b674ec74e47f33ce510052559db7b4fd40c93cd697db4f6b932888d
  • sha256:e9ce36038e28758b5a6d9e9ee8b3242808d0e8411ba09b4d5bde2d330d6c14ef
  • sha256:f34f846d804810d19822593f58bff32aef290708a513bea42e76b89cfcfc60ef
  • sha256:541eb5581930c48777c5e39ac215b66d3ebc61ea8ede5da56d06be18fd7cf3a8
  • sha256:884b4f9546ad533db8b24fedd60de5901b5960ef2ac48d1c9a81ec9ac0c77222

Guest image IDs sealed on 3.0.x (legacy)

  • sha256:a1a0bc89b5b1febaeda3519f6dbade0fa5ac16beeb143c4e1b01689573567bc6
  • sha256:6e5e88398691bb947308966a4df0019cfa1fc5894578c02f270320f1327ea8ac
  • sha256:adf39b5c4e8fe19f9dbc25e2b8eb84090f0ee6c9370f14ad10d5039e8e65b0ec
  • sha256:93c746e79afcf4b27f6d2a6da6cd142a4dd0da31f33d942f92b97344188526c5
  • sha256:33ac2853cd94704e42ceeab58625f396f74ef3286fa96d1a744d82c1167b7ca5
  • sha256:7908d47bb4367f3c11a4b906405113bad0a071ccfe5c5587455ad3132738911f
  • sha256:6548edabfc00736df6b3fa5954a8ac8a68df0855fbb5078f10c5916db9d5ac14

The Groth16 verifying-key coordinates for both sets are in the reference verifier source.

Part 3 of 8

What was exposed and what was not

The receipt layer was exposed. The hash layer was not.

Our 3.0.5 receipts are published in the open, so the advisory's precondition of holding one valid receipt was met by anyone who wanted one. Until 27 November, our optional receipt panel checked seals against the old verifying key only. During that window a forged receipt pasted into that panel could have been reported as valid. We know of no such forgery.

A forged receipt still could not make a changed artifact pass. Change one character of an artifact's parameters or output and the recomputed hash stops matching. Anyone can also run the kernel again on the stated inputs and see the real output for themselves.

Not affected

  • The execution hash on every artifact, and the browser check that compares it.
  • Any Ed25519 signature a holder attached.
  • Kernel arithmetic. No published output was wrong, and none has changed.
  • Conformance with the standard, which never required a receipt.

Affected

  • A 3.0.x receipt shown on its own to a reader who does not recompute the hash or run the kernel again.
  • Artifacts shared with their inputs withheld. The spec makes the receipt the only verification path in that mode, so those need a current receipt.
Part 4 of 8

What an older receipt is worth now

By our reading of the flaw, every receipt we sealed is still true. An old one can no longer prove that to a stranger.

The flaw made the old verifier willing to pass false statements. It did nothing to the true ones. Each 3.0.5 receipt we published came from a real run of the named kernel and reports the output that run produced. This is our own reading of how the flaw works. RISC Zero's advisory is about forged claims and does not discuss receipts that an older version produced from a real run.

What an old receipt has lost is its power to convince someone who has no other reason to trust it. A proof persuades only as far as its verifier refuses fakes, and the 3.0.x verifier has stopped refusing them. Our receipt verifier therefore reports a seal that passes under the old key as legacy. A legacy result means the receipt carries an old seal, and it should not be treated as evidence without the hash check beside it.

The legacy label cannot tell a genuine old receipt from a forged one. A forgery built with the flaw also passes under the old key, so it would carry the same label. Whether a legacy receipt is genuine is settled by something outside the receipt: the artifact's hash recomputed in your browser, or the kernel run again on the stated inputs.

Reasonable uses of a legacy receipt

  • Keeping it as a dated record that the kernel was proved at the time, alongside the hash check that confirms it.
  • Leaving it attached to an artifact whose hash you can recompute yourself.

Where you need a current receipt

  • When the artifact's inputs are withheld and the receipt is the only thing you can check.
  • When you plan to present the receipt to a third party as independent proof.

The legacy label was a holding state while the re-seal ran. Every published receipt now has a 3.1.0 seal, apart from 27 live nodes (count on 1 December 2026, plus one deprecated node) handled separately. A legacy result today means one of two things: you are holding an old copy, or the receipt comes from one of the 27 live nodes still on a legacy seal.

Part 5 of 8

The re-seal: done for all but 27 live nodes

Finished on 30 November 2026 for every live node except 27.

New seals were published to the public repository in batches from 28 November. On 30 November nearly every published receipt carried a 3.1.0 seal. A count on 1 December found 27 live nodes still on a legacy seal, and we are handling them separately. You can tell which prover sealed a receipt from its imageId field. We publish receipts from several guest programs, so there are eight current image IDs and seven legacy ones, all listed in Part 2. The receipts are in the compute-proof fixtures folder.

This reads the imageId and looks it up in the lists in Part 2. It runs in your browser and sends nothing. It does not check the seal itself. For the full pairing check, use the Receipt Bundle Verifier or the Verification Desk.

Part 6 of 8

Why a flaw like this does not require new receipts

Fix the verifier. The receipts were never wrong.

A zkVM flaw is published Where is the flaw? prover or verifier prover It computed wrongly rare, and a different case Judge it on its own the hash check still shows the truth verifier Update the verifier label old receipts legacy Is the receipt the only way to check the artifact? no, most receipts yes Keep the receipt the hash check carries PASS Regenerate it sole verification path This time we regenerated every receipt by choice. Next time, most receipts would take the green path.

The 3.1.0 flaw was a weakness in the verifier. It let a forged statement pass. It did not make any true statement false, and it did not change what any kernel computed. By our reading of the flaw, every receipt we had published was still an accurate record of a real run.

Nothing an OCG artifact needs depended on those receipts either. The required check is the execution hash, recomputed in your browser. Receipts are optional, left out of the hash, and never feed the PASS verdict. Updating the verifier closes the weakness for everyone who checks a receipt. Regenerating the receipts adds something only in the narrow cases from Part 4: an artifact shared with its inputs withheld, or a receipt shown to a third party as independent proof.

We re-sealed this time anyway, so that every published receipt would verify under a key that refuses forgeries. That was our choice. The standard does not require it. If RISC Zero publishes a similar flaw in future, we would update our verifiers and label the older receipts, and we probably would not regenerate them. We would regenerate only the receipts that are the sole verification path for an artifact.

That reasoning covers flaws in how receipts are checked. A flaw that made the prover compute a wrong result would be a different case, and we would weigh it on its own. Even then, the hash check and running the kernel again would show the true output.

Part 7 of 8

When the old key is retired

The next step. Legacy becomes a failure, not a warning.

Our verifiers still accept the old verifying key, but only to label a receipt that carries an old seal. That support is temporary. Once the remaining 27 live nodes are re-sealed, we plan to remove the 3.0.x parameter set from every verifier we publish. This page will be updated when that happens.

  • A 3.0.x seal will stop reading as legacy. It will be reported as invalid, the same as a receipt from an image we have never published.
  • The legacy control root, BN254 control ID, verifying key and the seven legacy image IDs leave our verifiers and our node records.
  • Published 3.0.x receipts have been replaced by their 3.1.0 seals. The 27 live nodes still on a legacy seal (count on 1 December 2026) are handled separately.
  • Artifacts do not change. The execution hash and the PASS rule never depended on the receipt.

If you keep copies of legacy receipts, or a copy of our verifier, check them against the current lists before then. A receipt you filed as legacy will fail once the old key is gone, even though the run behind it was real.

Part 8 of 8

Formal proofs for new kernels

Planned for the standard. Not in force today.

A zk receipt and a formal proof answer different questions. The receipt says a run of a specific kernel produced a specific output. A Dafny proof is a machine-checked theorem that a model of the kernel's logic meets a written specification for every input the model accepts. The model is a separate file from the JavaScript kernel that runs on this site, so the proof covers the running kernel only as far as the two agree. A replay on published test vectors measures that agreement. The proof does not cover it. A Dafny proof also has no trusted setup and no verifying key. If its toolchain needed a fix, we would run the checker again, which is a much smaller job than proving hundreds of receipts on GPUs.

The work has grown well past the pilot. As of 30 November, a large set of kernels has a Dafny model that passes four checks in our research runs. Dafny reports zero errors. A floating-point twin stays within tolerance of the model. A vacuity check confirms the specification is not trivially true. A mutation check plants deliberate bugs in the model and counts how many the specification catches. Most of these results were reproduced on a second machine. They have not yet been merged into the public repository, run in continuous integration, or signed off by a person, so we count them separately from the 16 published proofs.

The proofs reason over exact real numbers. The JavaScript kernels use floating-point arithmetic, so for each kernel we measure how far the two drift apart on test vectors rather than claim the running code is proved.

We plan to add a section to the standard that asks every new kernel to ship with a mechanically checked Dafny proof, or to state a reason from a fixed list for deferring it. That section is drafted and has not been published. The table shows what exists now. The formal-verification explainer describes the pilot behind it.

PieceStatus on 30 November 2026
Requirement in the published specNone yet. The spec has an optional record for a kernel's Dafny model (section 29).
Kernels with a published Dafny proof in the repository16
Kernels whose Dafny model passes all four checks in research runsNot yet merged, so not counted here
Dafny check in continuous integrationRuns on the 16 published proofs, and does not block a merge.
Human sign-off on a specificationNot yet given for the research set.
Requirement for new kernelsDrafted as a new section. Not published.