mirror of
https://github.com/tornadocash/circomlibjs.git
synced 2024-12-12 12:47: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) => {
|
exports.getIV = (seed) => {
|
||||||
if (typeof seed === "undefined") seed = SEED;
|
if (typeof seed === "undefined") seed = SEED;
|
||||||
const c = Web3Utils.keccak256(seed+"_iv");
|
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);
|
const iv = cn.mod(F.p);
|
||||||
return iv;
|
return iv;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user