git clone https://github.com/jp4g/circomHashes.git && cd circomHashes && yarn
yarn test
- Secret BigInt:
19161395867226193
- Circomlib MiMC7 Sponge Hash Output:
21731733786473486788053455829586899794818110208513063447752477998092164094938
- Circomlibjs MiMC7 Sponge Hash Output:
49931793134749019674205421580384475216470244562534267104157347019332121755690
Why are my hashes different? How can I achieve the correct format? It seems like the params for mimc sponge is (input, rounds, output)
so for a single input output hash I don't understand what is wrong :/
I have used the following resources for the majority of my info so far:
- The MiMC7 Spec
- Circomlib sponge implementation, test, and js sponge implementation and test
- Dark Forest and Tornado Cash implementations of MiMC7 Hash