Browse Source

Poseidon genContract nInputs as parameters

master
Jordi Baylina 4 years ago
parent
commit
01e3f0d680
No known key found for this signature in database GPG Key ID: 7480C80C1BE43112
1 changed files with 9 additions and 1 deletions
  1. +9
    -1
      src/poseidon_printcontract.js

+ 9
- 1
src/poseidon_printcontract.js

@ -1,5 +1,13 @@
const poseidonGenContract = require("./poseidon_gencontract");
if (process.argv.length != 3) {
console.log("Usage: node poseidon_gencontract.js [numberOfInputs]");
process.exit(1);
}
console.log(poseidonGenContract.createCode(5));
const nInputs = Number(process.argv[2]);
console.log(nInputs);
console.log(poseidonGenContract.createCode(nInputs));

Loading…
Cancel
Save