privacy-scaling-explorations / zk-kit

A monorepo of reusable libraries for zero-knowledge technologies.
https://zkkit.pse.dev
MIT License
291 stars 79 forks source link

feat(circuits): add tests and Noir circuits for pedersen and poseidon2 proving #234

Closed signorecello closed 7 months ago

signorecello commented 8 months ago

Description

Added two more circuits to Noir's SMT proving circuits, namely with Poseidon2 and Pedersen. The only one there was using a very unoptimized poseidon1 hash. This makes SMT proving several times faster (3-5s).

Of course, to go with it, I also added tests to @zk-kit/smt. I refactored them with the handy Jest .each so it tests the three hashes at once 🙂

Other information

Hopefully a nice beginning of Aztec >< PSE collaboration in adding more Noir stuff to this repository!

Checklist

gitpoap-bot[bot] commented 7 months ago

Congrats, your important contribution to this open-source project has earned you a GitPOAP!

GitPOAP: 2024 ZK-KIT Contributor:

GitPOAP: 2024 ZK-KIT Contributor GitPOAP Badge

Head to gitpoap.io & connect your GitHub account to mint!

Learn more about GitPOAPs here.