Skip to content

Supports the native halo2 verifier#81

Merged
zkmove-net merged 11 commits intomainfrom
cs-reconstruct
Feb 2, 2026
Merged

Supports the native halo2 verifier#81
zkmove-net merged 11 commits intomainfrom
cs-reconstruct

Conversation

@guangyuz
Copy link
Copy Markdown
Collaborator

@guangyuz guangyuz commented Jan 21, 2026

To reduce gas consumption, we introduce a verification method based on the native Halo2 verifier. Compared to the previous method based on BN254 algebra, the new method offers significantly higher performance.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds support for constraint system reconstruction from serialized circuit information. The main purpose is to enable reconstructing a Halo2 constraint system from its serialized CircuitInfo representation, which is useful for verifying proofs without needing the original circuit definition.

Changes:

  • Refactored shape-generator crate by splitting large lib.rs into separate modules (circuit_info, expression, helpers)
  • Added reconstruct_cs_from_circuit_info function to rebuild constraint systems from serialized data
  • Renamed vk-gen-examples crate to functional-tests with comprehensive reconstruction tests
  • Updated all references to the renamed crate across configuration files

Reviewed changes

Copilot reviewed 21 out of 29 changed files in this pull request and generated 13 comments.

Show a summary per file
File Description
crates/verifier-sdk/shape-generator/src/lib.rs Refactored to use modular structure; added constraint system reconstruction logic
crates/verifier-sdk/shape-generator/src/circuit_info.rs New module containing CircuitInfo and related types with serialization
crates/verifier-sdk/shape-generator/src/expression.rs New module for indexed expression handling and serialization
crates/verifier-sdk/shape-generator/src/helpers.rs New module with helper functions for encoding/decoding fields and points
crates/functional-tests/src/tests.rs New comprehensive tests for serialization and reconstruction
crates/functional-tests/src/proofs.rs New helper module for proof generation and verification
crates/functional-tests/src/examples/*.rs Updated example circuits with Clone derives for testing
packages/*/tests/*.move Updated comments referencing renamed crate path
Various config files Updated references from vk-gen-examples to functional-tests

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@guangyuz guangyuz changed the title support constraint system reconstruction Verification with native halo2 verifier Jan 29, 2026
@guangyuz guangyuz changed the title Verification with native halo2 verifier Verifying with the native halo2 verifier Jan 29, 2026
@guangyuz guangyuz changed the title Verifying with the native halo2 verifier Supports verifying using the native halo2 verifier Jan 29, 2026
@guangyuz guangyuz requested a review from nanne007 January 30, 2026 11:03
@guangyuz guangyuz changed the title Supports verifying using the native halo2 verifier Supports the native halo2 verifier Jan 30, 2026
@guangyuz guangyuz requested a review from zkmove-net February 2, 2026 02:02
@zkmove-net zkmove-net merged commit cb7c8ab into main Feb 2, 2026
1 check passed
@zkmove-net zkmove-net deleted the cs-reconstruct branch February 2, 2026 02:29
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.

3 participants