Skip to content

feat: build a groth16 vk that is not affected by Ziren upgrades#481

Merged
eigmax merged 21 commits intoProjectZKM:pre-release-v1.2.5from
felicityin:bitvm2-groth16-vk-v2
Mar 20, 2026
Merged

feat: build a groth16 vk that is not affected by Ziren upgrades#481
eigmax merged 21 commits intoProjectZKM:pre-release-v1.2.5from
felicityin:bitvm2-groth16-vk-v2

Conversation

@felicityin
Copy link
Copy Markdown
Contributor

@felicityin felicityin commented Mar 19, 2026

In order to avoid changes in groth16 vk after ziren upgrade, vk_commitment and pc_start will not be verified in the groth16 circuit, but will be placed in public inputs for verification.

When Ziren upgrades, only needs to update cracks/verifier/bn254-vk/part_dark-vk.bin, without updating cracks/verifier/bn254-vk/imm_groth16_vk.bin

Test

ZKM_IMM_WRAP_VK=1 cargo test -r --features ark -- --ignored test_verify_groth16_imm_wrap_vk
// or
cargo test -r --features imm-wrap-vk --features ark -- --ignored test_verify_groth16_imm_wrap_vk

@felicityin felicityin force-pushed the bitvm2-groth16-vk-v2 branch from 5a6501b to 84398af Compare March 19, 2026 08:09
@felicityin felicityin changed the title feat: build a groth16 vk that is not affected by Ziren upgrade feat: build a groth16 vk that is not affected by Ziren upgrades Mar 19, 2026
@felicityin felicityin force-pushed the bitvm2-groth16-vk-v2 branch from 84398af to ec15e34 Compare March 19, 2026 08:16
@felicityin felicityin force-pushed the bitvm2-groth16-vk-v2 branch 4 times, most recently from a946f71 to b399b00 Compare March 19, 2026 09:44
@felicityin felicityin force-pushed the bitvm2-groth16-vk-v2 branch from b399b00 to 053c558 Compare March 19, 2026 09:44
@felicityin felicityin force-pushed the bitvm2-groth16-vk-v2 branch from 2c91425 to 6326b6d Compare March 19, 2026 10:12
Comment thread crates/recursion/circuit/src/lib.rs Outdated
Comment thread crates/recursion/core/src/stark/utils.rs Outdated
Comment thread crates/recursion/core/src/stark/utils.rs Outdated
@felicityin felicityin force-pushed the bitvm2-groth16-vk-v2 branch from f59c964 to 2518afd Compare March 20, 2026 07:48
@felicityin felicityin force-pushed the bitvm2-groth16-vk-v2 branch from 2518afd to 9220619 Compare March 20, 2026 07:48
@eigmax eigmax changed the base branch from main to pre-release-v1.2.5 March 20, 2026 09:07
@eigmax eigmax merged commit a7446e7 into ProjectZKM:pre-release-v1.2.5 Mar 20, 2026
@felicityin felicityin deleted the bitvm2-groth16-vk-v2 branch April 22, 2026 03:25
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.

4 participants