Skip to content

Prover stateless verifier - #1093

Open
anylots wants to merge 6 commits into
mainfrom
prover-stateless-verifier
Open

anylots wants to merge 6 commits into
mainfrom
prover-stateless-verifier

Conversation

@anylots

@anylots anylots commented Nov 18, 2026

Copy link
Copy Markdown
Contributor

No description provided.

Move proof generation into `BatchProver::generate_proof`, with separate network and local implementations.

Co-Authored-By: Claude Opus 5.5 <<EMAIL_ADDRESS>>
@anylots
anylots requested review from a team and dylanCai9 November 18, 2026 11:46
@coderabbitai

coderabbitai Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Important

Review skipped

Too many files!

This PR contains 116 files, which is 16 over the limit of 100.

To get a review, reduce the PR to 100 files or fewer by splitting it into smaller PRs or changing its base branch.

Upgrade to a paid plan to raise the limit.

This review couldn't start because sufficient usage credits or metered capacity aren't available. Add credits or update usage-based reviews in the billing tab, then retry.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: ffbe9d2e-6077-4289-ade5-d6f7368e1129
Commits

Reviewing files that changed from the base of the PR and between ae987b1 and 79952d8.

Files ignored due to path filters: 2

  • prover/Cargo.lock is excluded by !**/*.lock
  • prover/tests/zstd/host/abc.txt.zst is excluded by !**/*.zst
Files selected for processing: 116

  • prover/Cargo.toml
  • prover/Dockerfile.sp1-base
  • prover/Dockerfile.sp1-test
  • prover/README.md
  • prover/bin/challenge/Cargo.toml
  • prover/bin/client/Cargo.toml
  • prover/bin/client/elf/verifier-client
  • prover/bin/host/Cargo.toml
  • prover/bin/host/src/evm.rs
  • prover/bin/host/src/execute.rs
  • prover/bin/host/src/lib.rs
  • prover/bin/host/src/main.rs
  • prover/bin/host/src/vkey.rs
  • prover/bin/server/Cargo.toml
  • prover/bin/server/src/main.rs
  • prover/bin/server/src/queue.rs
  • prover/bin/server/src/server.rs
  • prover/bin/shadow-prove/Cargo.toml
  • prover/bin/shadow-prove/contracts/README.md
  • prover/bin/shadow-prove/src/execute.rs
  • prover/bin/shadow-prove/src/lib.rs
  • prover/bin/shadow-prove/src/main.rs
  • prover/bin/shadow-prove/src/shadow_prove.rs
  • prover/bin/shadow-prove/src/shadow_rollup.rs
  • prover/contracts/README.md
  • prover/crates/executor/client/Cargo.toml
  • prover/crates/executor/client/src/lib.rs
  • prover/crates/executor/client/src/types/batch.rs
  • prover/crates/executor/client/src/types/error.rs
  • prover/crates/executor/client/src/types/input.rs
  • prover/crates/executor/client/src/verifier/blob_verifier.rs
  • prover/crates/executor/client/src/verifier/evm_verifier.rs
  • prover/crates/executor/core/Cargo.toml
  • prover/crates/executor/core/src/error.rs
  • prover/crates/executor/core/src/executor.rs
  • prover/crates/executor/host/Cargo.toml
  • prover/crates/executor/host/src/blob.rs
  • prover/crates/executor/host/src/execute.rs
  • prover/crates/executor/host/src/lib.rs
  • prover/crates/executor/host/src/trace.rs
  • prover/crates/executor/host/src/utils.rs
  • prover/crates/mpt/Cargo.toml
  • prover/crates/mpt/src/execution_witness.rs
  • prover/crates/mpt/src/lib.rs
  • prover/crates/mpt/src/mpt.rs
  • prover/crates/primitives/Cargo.toml
  • prover/crates/primitives/src/lib.rs
  • prover/crates/primitives/src/predeployed.rs
  • prover/crates/primitives/src/types/authorization_list.rs
  • prover/crates/primitives/src/types/blob.rs
  • prover/crates/primitives/src/types/block.rs
  • prover/crates/primitives/src/types/mod.rs
  • prover/crates/primitives/src/types/tx.rs
  • prover/crates/storage/rpc-db/Cargo.toml
  • prover/crates/storage/rpc-db/src/account_proof.rs
  • prover/crates/storage/rpc-db/src/basic_rpc_db.rs
  • prover/crates/storage/rpc-db/src/error.rs
  • prover/crates/storage/rpc-db/src/lib.rs
  • prover/crates/storage/rpc-db/src/witness_rpc_db.rs
  • prover/crates/storage/witness-db/Cargo.toml
  • prover/crates/storage/witness-db/src/lib.rs
  • prover/crates/utils/Cargo.toml
  • prover/crates/utils/src/lib.rs
  • prover/crates/utils/src/provider.rs
  • prover/crates/utils/src/witness.rs
  • prover/rustfmt.toml
  • prover/testdata/blob/blob_with_zstd_batch.data
  • prover/testdata/blob/blob_with_zstd_batch_holesky.data
  • prover/testdata/blob/mainnet_47561.data
  • prover/testdata/blob/sp1_batch.data
  • prover/testdata/block_inputs/devnet_53.json
  • prover/testdata/block_inputs/mainnet_1430.json
  • prover/testdata/block_inputs/mainnet_18762206.json
  • prover/testdata/block_inputs/mainnet_19137902.json
  • prover/testdata/block_inputs/mainnet_19137909.json
  • prover/testdata/block_inputs/mainnet_19266117.json
  • prover/testdata/block_inputs/mainnet_19720219.json
  • prover/testdata/block_inputs/mainnet_209.json
  • prover/testdata/block_inputs/mainnet_25215.json
  • prover/testdata/block_inputs/mainnet_809.json
  • prover/testdata/block_inputs/mainnet_898.json
  • prover/testdata/mpt/hostexecutoroutput
  • prover/testdata/mpt/local_transfer_eth.json
  • prover/testdata/mpt/mainnet_1430.json
  • prover/testdata/mpt/mainnet_16283373.data
  • prover/testdata/mpt/mainnet_165256.data
  • prover/testdata/mpt/mainnet_18762206.json
  • prover/testdata/mpt/mainnet_19137902.json
  • prover/testdata/mpt/mainnet_19137909.json
  • prover/testdata/mpt/mainnet_19266117.json
  • prover/testdata/mpt/mainnet_19720219.json
  • prover/testdata/mpt/mainnet_19720290.data
  • prover/testdata/mpt/mainnet_209.json
  • prover/testdata/mpt/mainnet_25215.json
  • prover/testdata/mpt/mainnet_809.json
  • prover/testdata/mpt/mainnet_898.json
  • prover/testdata/state/executor_input_19720290.data
  • prover/tests/algebra/client/Cargo.toml
  • prover/tests/algebra/host/Cargo.toml
  • prover/tests/algebra/host/sp1_test_proof.json
  • prover/tests/algebra/host/src/main.rs
  • prover/tests/bls12381/client/Cargo.toml
  • prover/tests/bls12381/host/Cargo.toml
  • prover/tests/bls12381/host/src/main.rs
  • prover/tests/keccak256/client/Cargo.toml
  • prover/tests/keccak256/client/elf/riscv32im-succinct-zkvm-elf
  • prover/tests/keccak256/client/src/main.rs
  • prover/tests/keccak256/host/Cargo.toml
  • prover/tests/keccak256/host/src/main.rs
  • prover/tests/zstd/client/Cargo.toml
  • prover/tests/zstd/client/elf/riscv32im-succinct-zkvm-elf
  • prover/tests/zstd/client/src/main.rs
  • prover/tests/zstd/host/Cargo.toml
  • prover/tests/zstd/host/compressed_batch.data
  • prover/tests/zstd/host/decoded_blob_with_compressed_batch.data
  • prover/tests/zstd/host/src/main.rs

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Warning

Billing warning: we have not been able to collect payment for this subscription for more than 72 hours. Please update the payment method or pay any pending invoices in Billing to avoid service interruption.

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

The batch DA commitments bind only the L1-only projection of the
transaction stream (data_hash) and the L2-only projection (blob), not
their interleaving inside a block. The guest executed transactions in
whatever order the witness supplied, so a single committed batch could
be proven with different postStateRoot / withdrawRoot values
(GHSA-fgxm-qqj4-jxv9).

Add validate_canonical_order before execution, mirroring the node's
validateL1Messages: within a block every L1 message must precede every
L2 transaction, and L1 queue indices must be consecutive across the
batch. Combined with the per-block num_l1_txs in the blob block
context, each block's transaction stream is now uniquely determined by
the committed data.

Co-Authored-By: Claude Opus 5.5 <<EMAIL_ADDRESS>>
mix_hash (PREVRANDAO) and difficulty (DIFFICULTY) feed the EVM block
environment but are not committed by the blob, so a prover could pick
arbitrary values and reach a state the L2 network never executed.
morph-geth builds L2 headers with both fields zero and always returns 0
for opcode 0x44; reject any other value before execution.

Co-Authored-By: Claude Opus 5.5 <<EMAIL_ADDRESS>>
#[test]
fn accepts_canonical_order() {
let blocks = [
block(1, vec![l1(0), l1(1), l2(0), l2(1)]),
#[test]
fn accepts_canonical_order() {
let blocks = [
block(1, vec![l1(0), l1(1), l2(0), l2(1)]),
fn accepts_canonical_order() {
let blocks = [
block(1, vec![l1(0), l1(1), l2(0), l2(1)]),
block(2, vec![l2(2)]),
block(2, vec![l2(2)]),
block(3, vec![]),
block(4, vec![l1(2)]),
block(5, vec![l1(3), l2(3)]),

#[test]
fn rejects_l1_message_after_l2_tx() {
for txs in [vec![l2(0), l2(1), l1(0), l1(1)], vec![l1(0), l2(0), l1(1)], vec![l2(0), l1(0)]]

#[test]
fn rejects_l1_message_after_l2_tx() {
for txs in [vec![l2(0), l2(1), l1(0), l1(1)], vec![l1(0), l2(0), l1(1)], vec![l2(0), l1(0)]]

#[test]
fn rejects_l1_message_after_l2_tx() {
for txs in [vec![l2(0), l2(1), l1(0), l1(1)], vec![l1(0), l2(0), l1(1)], vec![l2(0), l1(0)]]

#[test]
fn rejects_l1_message_after_l2_tx() {
for txs in [vec![l2(0), l2(1), l1(0), l1(1)], vec![l1(0), l2(0), l1(1)], vec![l2(0), l1(0)]]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants