penumbra
penumbra copied to clipboard
poseidon circuit implementation
This ticket is for adding support for computing hashes in circuit, probably via an extension trait on PlonkCircuit
. A pre-req is #55 (which may end up changing the Poseidon parameters and/or implementation we're using). For proofs so far, we need:
- Rate 1: for computing note commitments
- Rate 3: for nullifier derivation
- Rate 4: TCT proofs of inclusion
We won't need rate 2 because we won't have a binary NCT anymore.
Related upstream tickets:
- https://github.com/EspressoSystems/jellyfish/issues/29
- https://github.com/ZK-Garage/plonk/issues/104