Fix typo mimc7

This commit is contained in:
Jordi Baylina 2021-10-06 17:14:22 +02:00
parent 135a71daeb
commit 044f7945fc
No known key found for this signature in database
GPG Key ID: 7480C80C1BE43112
1 changed files with 1 additions and 1 deletions

View File

@ -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;
};