Skip to content

Commit

Permalink
CheckProofBatch doesn't support removing leaves
Browse files Browse the repository at this point in the history
  • Loading branch information
altergui committed Nov 5, 2024
1 parent c3e0e71 commit 4d8401e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tree/arbo/proof.go
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,8 @@ func CalculateProofNodes(hashFunc HashFunction, k, v, packedSiblings, oldKey []b
// CheckProofBatch verifies a batch of N proofs pairs (old and new). The proof verification depends on the
// HashFunction passed as parameter.
// Returns nil if the batch is valid, or an error otherwise.
//
// TODO: doesn't support removing leaves (newProofs can only update or add new leaves)
func CheckProofBatch(hashFunc HashFunction, oldProofs, newProofs []*CircomVerifierProof) error {
newBranches := make(map[string]int)
newSiblings := make(map[string]int)
Expand Down

0 comments on commit 4d8401e

Please sign in to comment.