Skip to content

7 leaf proofs#569

Open
illuzen wants to merge 1 commit into
mainfrom
illuzen/leaf-proof-count-7
Open

7 leaf proofs#569
illuzen wants to merge 1 commit into
mainfrom
illuzen/leaf-proof-count-7

Conversation

@illuzen
Copy link
Copy Markdown
Contributor

@illuzen illuzen commented May 26, 2026

this also needs to update to latest qp-zk-circuits after release


Note

Medium Risk
Changes embedded ZK circuit binaries and proof aggregation capacity unless builds override QP_NUM_LEAF_PROOFS, which can affect verifier compatibility and proof batching behavior.

Overview
Default wormhole ZK aggregation size is reduced from 16 to 7 leaf proofs when QP_NUM_LEAF_PROOFS is unset. The pallets/wormhole/build.rs script still passes that value into generate_all_circuit_binaries, so generated aggregated_* binaries and anything compiled in via include_bytes! will match the smaller tree.

Comments document the tradeoff: 7 leaves target degree_bits=15 (~1.5 GB peak on mobile); 8+ pushes degree_bits=16 (~2.5 GB), which the team treats as viable mainly on 6GB+ devices.

Reviewed by Cursor Bugbot for commit fc0c9f5. Bugbot is set up for automated code reviews on this repo. Configure here.

Copy link
Copy Markdown
Collaborator

@n13 n13 left a comment

Choose a reason for hiding this comment

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

All in on 7

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