Leaf Proof Count 7#106
Open
illuzen wants to merge 5 commits into
Open
Conversation
n13
reviewed
May 26, 2026
Contributor
n13
left a comment
There was a problem hiding this comment.
Please address the bugbot issue - can just rename the binaries or version them
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 2525b29. Configure here.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

also updated metadata to latest for chain
this needs to update to latest version of qp-zk-circuits
Note
High Risk
Large generated metadata and circuit-parameter changes can break installed binaries until bins regenerate and must match the deployed runtime; multisig/high-security API removals are breaking for older integrations.
Overview
This PR retargets wormhole/ZK circuit generation for 7 leaf proofs per batch (down from 16), aimed at lower peak memory on mobile, and bumps the CLI to
qp-poseidon-core2.0.2 while dropping the separateqp-poseidondependency.Circuit binaries:
DEFAULT_NUM_LEAF_PROOFSis now 7 and is public for reward aggregation. Runtimeis_ready()also treats cachedgenerated-binsas stale whenconfig.json’snum_leaf_proofsor the CLI version marker no longer match;build.rsonly watchesQP_NUM_LEAF_PROOFSfor rebuilds. Aclippy.shscript mirrors CI’s locked clippy invocation.Chain metadata:
quantus_subxt.rsis regenerated for the latest runtime—ZkTreepallet/API,zk_tree_rooton block headers, wormhole events carryingleaf_index(Merkle proofs via RPC), removal of wormholeTransferProofstorage, reversible-transfersguardiannaming/storage (GuardianIndex,next_transaction_id), and multisig pallet changes (e.g. noapprove_dissolve, bounded propose calls,SignerApprovedevent,MaxInnerCallWeight). The high-security CLI followsguardian_index; the multisig example printsproposal_nonceinstead of active proposal count.Note: Example text may still mention dissolve APIs that no longer exist on-chain until follow-up doc fixes.
Reviewed by Cursor Bugbot for commit a6d2324. Bugbot is set up for automated code reviews on this repo. Configure here.