Hi,
Running below code will get out of gas
error and with highest gas it only passes 6 rounds locally.
Try to run mimcFeistel
function with values like 220,2,0,0 (for example) from below code
First is Rounds, Second left input, right input , k.
This is like one function and others are still to be fixed & attach with it. The max rounds I can run with it are 6
It is mentioned here Library functions must be implemented if declared. · Issue #86 · tornadocash/tornado-core · GitHub that it needs to be deployed in lower level functions and these are the direct instructions circomlib/mimcsponge_gencontract.js at master · tornadocash/circomlib · GitHub
While here is how they make script to deploy on ethereum the bytecode and abi tornado-core/compileHasher.js at 23543683f3af71783f8036c16fe9ad21369dc3dc · tornadocash/tornado-core · GitHub
Then this here is the solidity version of the hasher mimc.sol · GitHub