Module membership
Structs
Functions
- Check whether a leaf exists in the tree with the given
root.membership_witnessis a hint to prove that theleafexists in the tree with the givenroot. - Check whether a leaf exists in the tree with the given
root. Same ascheck_membershipbut uses a custom hasher.membership_witnessis a hint to prove that theleafexists in the tree with the givenroot. - Check a key's non-existence in the indexed tree with the given
tree_root.low_leaf_preimageis the preimage for the low leaf of the key. The key should be larger than the low leaf's key, and smaller than the low leaf's next key.low_leaf_membership_witnessis a hint to prove that the low leaf exists in the tree with the giventree_root. - Check either membership or non-membership depending on the value of
exists:- If
exists== true,keyis in the tree.leaf_preimageis for the key itself. - If
exists== false,keyis not in the tree.leaf_preimageis for the low leaf of the key.membership_witnessis the hint to prove that theleaf_preimageexists in the tree with the giventree_root.
- If