Check whether a leaf exists in the tree with the given root.
Same as check_membership but uses a custom hasher.
membership_witness is a hint to prove that the leaf exists in the tree with the given root.
Returns:
bool: true if the leaf exists in the tree, false otherwise.
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.Returns:
trueif the leaf exists in the tree,falseotherwise.