Skip to content

feat: add multi-proof Merkle verifier - #704

Open
devv-leo wants to merge 1 commit into
RevoraOrg:masterfrom
devv-leo:feat/multi-proof-verifier
Open

feat: add multi-proof Merkle verifier#704
devv-leo wants to merge 1 commit into
RevoraOrg:masterfrom
devv-leo:feat/multi-proof-verifier

Conversation

@devv-leo

Copy link
Copy Markdown
Contributor

Closes #572

Description

Add OpenZeppelin-style batched Merkle inclusion verification so an aggregator can settle multiple claims in one transaction with a single shared proof structure.

Changes

  • Add MerkleError::InconsistentLeafOrdering variant (1004)
  • Add verify_multi_proof(root, leaves, proof, flags) helper to merkle_helpers.rs
  • Add RevoraError::MultiProofLeafOrdering (89) for structured error reporting
  • Add contract entrypoint verify_multi_proof with depth-bound enforcement and event emission
  • Add comprehensive tests covering empty leaves, single leaf, multi-leaf, depth bounds, proof siblings, and gas comparison

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.

Add multi-proof (batched inclusion) verifier for claim aggregation

1 participant