Repository navigation
Accept mock proofs with --proof-engine-mock-proofs - #53
Merged
frisitano merged 4 commits intoOct 22, 2026
Merged
Conversation
…ck-proofs
zkboost v0.12.0 mock zkVMs emit an SSZ `MockProof { public_values, proof }`
with random proof bytes, which the ERE verifiers reject. Extend
`MockProofEngine` to accept these proofs for the configured proof types when
their public values match the proof's public input, and select it at runtime
with the devnet-only `--proof-engine-mock-proofs` flag. This lets an EIP-8025
devnet run without a GPU prover.
Mirror zkboost's `MockProof { public_values, proof }` and derive its SSZ
codec instead of decoding the two lists by hand. A layout test pins the
encoding to the one zkboost tests.
`--dump-config` round-trips the client config through JSON, so a skipped `mock_proofs` field read back as false. Serialize it and default it to false when absent.
The mock proof format comes from zkboost's mock zkVMs, but any prover may send it. Keep one reference to zkboost's MockProof as the layout's source, and name the API, flag help, warning and tests after mock proofs.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
zkboost v0.12.0's
kind: mockzkVMs submit an SSZMockProof { public_values: List[byte], proof: List[byte] }with random proof bytes (eth-act/zkboost#87). The in-process ERE verifiers reject these, so an EIP-8025 devnet with mock proving cannot run against this branch, and every devnet then needs a GPU prover.This extends the existing
MockProofEngineto accept that format and adds a devnet-only flag to select it. The code names it after the format, not zkboost: any prover may send aMockProof, and zkboost is cited once, as the source of the layout.MockProofmirrors zkboost's SSZ container (crates/types/src/execution_proof.rs) with a derived SSZ codec. A layout test pins its encoding to the one zkboost tests.MockProofEngine::accepting_mock_proofs(proof_types)accepts a proof of a configured type when it decodes as aMockProofwhose public values equal the SSZ-serialized public input of the proof, the same bytes the ERE path compares. It does not check the proof bytes. A proof of an unconfigured type returnsUnconfiguredProofType, matching the ERE engine.ProofEngineConfig::with_mock_proofs()makesbuild_enginereturn that mock engine for the configured proof types. The default is all types; a--proof-engine <path>config narrows them.--proof-engine-mock-proofs(requires--proof-engine) enables it and logs a warning.Prysm
optional-proofshas the equivalent--zkvm-mock-proofs. One difference: Prysm also runs a genuine stand-in proof through ERE for each mock proof to keep the verification cost realistic. This PR does not.Usage (ethereum-package, after ethpandaops/ethereum-package#1492)
Testing
cargo test -p proof_engine: 10 passed, including the newmock_proof_layout,mock_proofs_verify_their_public_valuesandexact_proof_data_mock_rejects_mock_proofs.cargo clippy -p proof_engine --all-targets --no-deps -- -D warnings: clean. Without--no-deps, clippy 1.95 flagsenum_variant_namesonSszErrorinexecution_layer, which this PR does not touch.proof_engine_mock_proofs_flagandproof_engine_without_mock_proofs_flaginlighthouse/tests/beacon_node.rs. These are not run locally yet.optional-proofsand dapplion/lighthouseeip8025: this node accepted every mock proof from the other clients and they accepted every one of its proofs, with none rejected.Notes for review
book/src/help_bn.mdis not regenerated yet.make climay flag it.test_utils.rs, which is compiled unconditionally. Move it if you'd rather keep devnet code out of that module.