2021-10-30 13:57:29 +02:00
|
|
|
import buildMimcSponge from "./mimcsponge.js";
|
2021-10-06 11:28:14 +02:00
|
|
|
|
2021-10-30 13:57:29 +02:00
|
|
|
async function run() {
|
|
|
|
const mimcsponge = await buildMimcSponge();
|
|
|
|
const nRounds = 220;
|
|
|
|
let S = "[\n";
|
|
|
|
const cts = mimcsponge.getConstants();
|
|
|
|
for (let i=0; i<nRounds; i++) {
|
|
|
|
S = S + mimcsponge.F.toString(cts[i]);
|
|
|
|
if (i<nRounds-1) S = S + ",";
|
|
|
|
S=S+"\n";
|
|
|
|
}
|
|
|
|
S = S + "]\n";
|
|
|
|
|
|
|
|
console.log(S);
|
2021-10-06 11:28:14 +02:00
|
|
|
}
|
|
|
|
|
2021-10-30 13:57:29 +02:00
|
|
|
run().then(()=> {
|
|
|
|
process.exit(0);
|
|
|
|
}, (err) => {
|
|
|
|
console.log(err.stack);
|
|
|
|
console.log(err.message);
|
|
|
|
process.exit(1);
|
|
|
|
});
|