Skip to content

feat: v0.8.0#10

Draft
Thegaram wants to merge 4 commits into
mainfrom
feat-v0.8.0
Draft

feat: v0.8.0#10
Thegaram wants to merge 4 commits into
mainfrom
feat-v0.8.0

Conversation

@Thegaram

@Thegaram Thegaram commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

Upgrade to v0.8.0 version: scroll-tech/zkvm-prover#254 (deployed on mainnet, but not merged and tagged yet).

Verifier codehash fix

The previous generate-verifier --recompute implementation was based on OpenVM v1.4.0 and produced a codehash that did not match the verifier deployed at 0x96cbcC4333E172927fDa8B631C716d43E2FBA01C (0x6a74f16c472ea2698ee461daf35ffb62faaef6280d40390961daa181bc805663). This PR aligns the tool with zkvm-prover v0.8.0 / OpenVM v1.6.0:

  • Bumps OpenVM dependencies to the versions used by zkvm-prover v0.8.0.
  • Replaces the deprecated verifier generation path with the one used by zkvm-prover/crates/build-guest.
  • Applies the canonical forge fmt configuration before compiling the re-computed verifier, so the solc metadata hash matches the published Halo2Verifier.sol.
  • Documents the Foundry v1.5.0 requirement for --recompute to yield the exact on-chain codehash.

Verification

$ cargo run --release -- generate-verifier
0x6a74f16c472ea2698ee461daf35ffb62faaef6280d40390961daa181bc805663

$ RUST_MIN_STACK=16777216 cargo run --release -- generate-verifier --recompute
0x6a74f16c472ea2698ee461daf35ffb62faaef6280d40390961daa181bc805663

Both modes now produce the same codehash as the on-chain verifier.

Thegaram and others added 4 commits June 26, 2026 16:45
- Bump openvm-sdk/openvm-native-recursion to v1.6.0 and openvm-stark-sdk to v1.4.0
- Replace deprecated Sdk::riscv32().generate_halo2_verifier_solidity() with snark_verifier_sdk::evm::gen_evm_verifier_sol_code, matching zkvm-prover/crates/build-guest
- Format re-computed Solidity with the canonical forge fmt config so solc metadata hash matches the deployed Halo2Verifier.sol
- Document Foundry v1.5.0 requirement for exact --recompute codehash

Both generate-verifier and generate-verifier --recompute (with forge v1.5.0) now produce the on-chain codehash 0x6a74f16c...805663.
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