Skip to content

Commit

Permalink
assert tree root is equal to target root
Browse files Browse the repository at this point in the history
  • Loading branch information
coldstar1993 committed Nov 24, 2023
1 parent dda0951 commit a51968f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/alternatives/standard_tree/verify_circuit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@ export const verifyMembership = (
leaf: Field,
leafIndex: Field
) => {
// assert tree root is equal to target root
siblingPath.calculateRoot(leaf, leafIndex).assertEquals(root);
}

0 comments on commit a51968f

Please sign in to comment.