Smart contract supporting MiMC hash in gnark #1252
heianqishijueqile
started this conversation in
General
Replies: 1 comment
-
hi @heianqishijueqile , we do have the implementation of mimc on bls12-377 (corresponding to gnark-crypto's implementation) here https://github.com/Consensys/linea-monorepo/blob/main/contracts/contracts/lib/Mimc.sol We unrolled the loop for performances reason, you can adapt the code for the implementation of mimc on other curves (it's the exact same loop, only the counter and the constants differ) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In Tornado Cash, there is a contract specifically for computing the MiMC hash, which can be used with Circom to create zero-knowledge proofs. If I want to use gnark for MiMC hash zero-knowledge proofs, is there a contract compatible with the MiMC hash algorithm in gnark?
Beta Was this translation helpful? Give feedback.
All reactions