Function check_membership
pub fn check_membership<let TREE_HEIGHT: u32>(
leaf: Field,
membership_witness: MembershipWitness<TREE_HEIGHT>,
root: Field,
) -> bool
pub fn check_membership<let TREE_HEIGHT: u32>(
leaf: Field,
membership_witness: MembershipWitness<TREE_HEIGHT>,
root: Field,
) -> bool
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.Returns:
trueif the leaf exists in the tree,falseotherwise.