arnaucube
arnaucube/circomlibPublic Self-hosted repository
circomlib/src/mimcsponge_printconstants.js
src/mimcsponge_printconstants.jsRaw
 1const mimcsponge = require("./mimcsponge.js");
 2
 3const nRounds = 220;
 4let S = "[\n";
 5const cts = mimcsponge.getConstants();
 6for (let i=0; i<nRounds; i++) {
 7    S = S + cts[i].toString();
 8    if (i<nRounds-1) S = S + ",";
 9    S=S+"\n";
10}
11S = S + "]\n";
12
13console.log(S);