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
/
poseidon_printconstants.js
17 lines
(10 loc)
•
253 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
const
Poseidon
=
require
(
"./poseidon.js"
);
const
C =
Poseidon
.
getConstants
();
let
S =
"[\n"
;
for
(
let
i=
0
; i<C.
length
; i++) { S = S +
" "
+ C[i].
toString
();
if
(i<C.
length
-
1
) S = S +
","
; S = S +
"\n"
; } S=S+
"]\n"
;
console
.
log
(S);