Skip to content

7 leaf proofs#569

Open
illuzen wants to merge 3 commits into
mainfrom
illuzen/leaf-proof-count-7
Open

7 leaf proofs#569
illuzen wants to merge 3 commits 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 compile-time wormhole circuit parameters and proof batch size, which affects on-chain aggregated proof verification compatibility until fixtures and downstream qp-zk-circuits versions are aligned.

Overview
This PR lowers the default wormhole aggregation batch from 16 to 7 leaf proofs when build.rs generates embedded ZK circuit binaries (QP_NUM_LEAF_PROOFS still overridable via env). The comment documents the tradeoff: 7 leaves stay at degree_bits=15 (~1.5 GB peak) for mobile; 8+ needs a larger circuit (~2.5 GB).

Workspace and pallet-wormhole dev-dependencies add qp-wormhole-aggregator and qp-wormhole-inputs (plus circuit-builder in tests) to support an ignored regenerate_test_fixture test that rebuilds circuits at 7 leaves, proves/aggregates a sample transfer, and rewrites test-data/aggregated.hex. A local compute_zk_leaf_hash helper keeps fixture generation aligned with the circuit.

Note for reviewers: after this lands, run the ignored fixture generator (or refresh aggregated.hex manually) so tests/benchmarks that include_str! the hex proof match the new binaries; the PR description also calls for bumping to the latest qp-zk-circuits release when available.

Reviewed by Cursor Bugbot for commit 8110b33. 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