UNPKG
circomlib-backup
Version:
latest (0.0.23)
0.0.23
0.0.22
0.0.21
0.0.20
Basic circuits library for Circom
github.com/iden3/circomlib
iden3/circomlib
circomlib-backup
/
src
/
mimc_printconstants.js
14 lines
(11 loc)
•
252 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
const
mimc7 =
require
(
"./mimc7.js"
);
const
nRounds =
91
;
let
S =
"[\n"
;
const
cts = mimc7.
getConstants
();
for
(
let
i=
0
; i<nRounds; i++) { S = S + cts[i].
toString
();
if
(i<nRounds-
1
) S = S +
","
; S=S+
"\n"
; } S = S +
"]\n"
;
console
.
log
(S);