circomlibjs/src/mimcsponge_printcontract.js

14 lines
277 B
JavaScript
Raw Normal View History

2021-10-06 11:28:14 +02:00
const mimcGenContract = require("./mimcsponge_gencontract");
const SEED = "mimcsponge";
let nRounds;
if (typeof process.argv[2] != "undefined") {
nRounds = parseInt(process.argv[2]);
} else {
nRounds = 220;
}
console.log(mimcGenContract.createCode(SEED, nRounds));