Skip to content

Add --O2 paramter to the build paramter #8

Merged
ping-ke merged 2 commits into
mainfrom
update-build
Aug 26, 2025
Merged

Add --O2 paramter to the build paramter #8
ping-ke merged 2 commits into
mainfrom
update-build

Conversation

@ping-ke
Copy link
Copy Markdown
Contributor

@ping-ke ping-ke commented Aug 25, 2025

--O2 was added to circom at v2.0.9 to sepcify the simplification type when build circuits, and its default value is changed at v2.2.0.

To ensure that we use a fixed simplification type when building, add the parameter --O2 to our build parameters.

Note:
--O2 paramter: This level applies intermediate optimizations to reduce constraint count without altering circuit logic. Learn more about Circom optimizations here.

snarkjs v0.5.0 uses deplicated node.js 14/16, and its snarkjs zkey verify results will differ from snarkjs v0.7.0 or later.

@ping-ke ping-ke merged commit 0c2db00 into main Aug 26, 2025
3 checks passed
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