UNPKG
@voctest/circomlibjs
Version:
latest (0.2.2)
0.2.2
0.2.1
0.2.0
0.1.8
Javascript library to work with circomlib
github.com/iden3/circomlibjs
iden3/circomlibjs
@voctest/circomlibjs
/
src
/
poseidon_printcontract.js
14 lines
(8 loc)
•
284 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import
{createCode}
from
"./poseidon_gencontract.js"
;
if
(process.
argv
.
length
!=
3
) {
console
.
log
(
"Usage: node poseidon_gencontract.js [numberOfInputs]"
); process.
exit
(
1
); }
const
nInputs =
Number
(process.
argv
[
2
]);
console
.
log
(nInputs);
console
.
log
(
createCode
(nInputs));