dusk-network / Poseidon252

Reference implementation for the Poseidon Snark-friendly Hash algorithm.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tree: Merkle opening should constrain leaf

vlopes11 opened this issue · comments

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.