const bn128 = require("snarkjs").bn128; const bigInt = require("snarkjs").bigInt; const Web3 = require("web3"); const F = bn128.Fr; const SEED = "iden3_mimc"; const nRounds = 91; exports.getConstants = (seed, nRounds) => { const cts = new Array(nRounds); let c = Web3.utils.keccak256(SEED); for (let i=1; i{ const x_in = bigInt(_x_in); const k = bigInt(_k); let r; for (let i=0; i