const bn128 = require("snarkjs").bn128; const bigInt = require("snarkjs").bigInt; const Web3 = require("web3"); const F = bn128.Fr; module.exports.hash = MiMC7Hash; module.exports.getConstants = getConstants; const SEED = "iden3_mimc"; function getConstants(seed, nRounds) { const cts = new Array(nRounds); let c = Web3.utils.keccak256(SEED); for (let i=1; i