mirror of
https://github.com/tornadocash/circomlibjs.git
synced 2024-12-12 04:37:09 +01:00
Fix typo mimc7
This commit is contained in:
parent
135a71daeb
commit
044f7945fc
@ -11,7 +11,7 @@ const NROUNDS = 91;
|
||||
exports.getIV = (seed) => {
|
||||
if (typeof seed === "undefined") seed = SEED;
|
||||
const c = Web3Utils.keccak256(seed+"_iv");
|
||||
const cn = Scalar.FromString(Web3Utils.toBN(c).toString());
|
||||
const cn = Scalar.fromString(Web3Utils.toBN(c).toString());
|
||||
const iv = cn.mod(F.p);
|
||||
return iv;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user