Tree: Merkle opening should constrain leaf
vlopes11 opened this issue · comments
Victor Lopes commented
Currently the merkle opening is not constraining the leaf.
This forces the consumer to reproduce the same logic of the merkle bits checker that is internal to poseidon.
The merkle_opening gadget should take the leaf as witness and constrain it to the first level of the opening branch.