Integrate pmtree into rln (#147)

* feat: integrate pmtree with zerokit

* fix: tests
This commit is contained in:
Aaryamann Challani
2023-04-28 10:02:21 +05:30
committed by GitHub
parent 4f98fd8028
commit fd7d7d9318
18 changed files with 374 additions and 653 deletions

View File

@@ -96,8 +96,7 @@ mod test {
// We now delete all leaves set and check if the root corresponds to the empty tree root
// delete calls over indexes higher than no_of_leaves are ignored and will not increase self.tree.next_index
let delete_range = 2 * no_of_leaves;
for i in 0..delete_range {
for i in 0..no_of_leaves {
let success = delete_leaf(rln_pointer, i);
assert!(success, "delete leaf call failed");
}