mirror of
https://github.com/tornadocash/circomlibjs.git
synced 2024-12-12 12:47:09 +01:00
Fixes
This commit is contained in:
parent
13e981b307
commit
da3a6321f7
3
index.js
3
index.js
@ -12,12 +12,9 @@ exports.mimcsponge_printconstants = require("./src/mimcsponge_printconstants");
|
|||||||
exports.mimcsponge_printcontract = require("./src/mimcsponge_printcontract");
|
exports.mimcsponge_printcontract = require("./src/mimcsponge_printcontract");
|
||||||
exports.pedersenHash = require("./src/pedersenHash");
|
exports.pedersenHash = require("./src/pedersenHash");
|
||||||
exports.pedersen_printbases = require("./src/pedersen_printbases");
|
exports.pedersen_printbases = require("./src/pedersen_printbases");
|
||||||
exports.poseidon_constants = require("./src/poseidon_constants");on
|
|
||||||
exports.poseidon_constants_opt = require("./src/poseidon_constants_opt");on
|
|
||||||
exports.poseidon_gencontract = require("./src/poseidon_gencontract");
|
exports.poseidon_gencontract = require("./src/poseidon_gencontract");
|
||||||
exports.poseidon = require("./src/poseidon");
|
exports.poseidon = require("./src/poseidon");
|
||||||
exports.poseidon_printcontract = require("./src/poseidon_printcontract");
|
exports.poseidon_printcontract = require("./src/poseidon_printcontract");
|
||||||
exports.poseidon_printmatrix = require("./src/poseidon_printmatrix");
|
|
||||||
exports.poseidon_slow = require("./src/poseidon_slow");
|
exports.poseidon_slow = require("./src/poseidon_slow");
|
||||||
exports.smt_hashes_mimc = require("./src/smt_hashes_mimc");
|
exports.smt_hashes_mimc = require("./src/smt_hashes_mimc");
|
||||||
exports.smt_hashes_poseidon = require("./src/smt_hashes_poseidon");
|
exports.smt_hashes_poseidon = require("./src/smt_hashes_poseidon");
|
||||||
|
@ -12,7 +12,7 @@ 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 = Scalar.mod(cn, F.p);
|
||||||
return iv;
|
return iv;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user