roll_up_circom_tutorial icon indicating copy to clipboard operation
roll_up_circom_tutorial copied to clipboard

Versions of dependencies

Open 3q-coder opened this issue 5 years ago • 0 comments

I have error after run snarkjs calculatewitness -c eddsa_mimc_verifier.cir:

Error: 0 and 21888242871839275222246405745257275088548364400416034343698204186575808495617 are not co-prime
    at SmallInteger.BigInteger.modInv (/usr/local/lib/node_modules/snarkjs/node_modules/big-integer/BigInteger.js:956:32)
    at /usr/local/lib/node_modules/snarkjs/src/bigint.js:263:35
    at SmallInteger.wBigInt.inverse (/usr/local/lib/node_modules/snarkjs/src/bigint.js:370:33)
    at Object.__f [as MontgomeryAdd] (eval at Circuit (/usr/local/lib/node_modules/snarkjs/src/circuit.js:46:33), <anonymous>:6:251)
    at RTCtx.triggerComponent (/usr/local/lib/node_modules/snarkjs/src/calculateWitness.js:126:41)
    at callComponents.map (/usr/local/lib/node_modules/snarkjs/src/calculateWitness.js:167:51)
    at Array.map (<anonymous>)
    at RTCtx.setSignalFullName (/usr/local/lib/node_modules/snarkjs/src/calculateWitness.js:166:24)
    at RTCtx.setSignal (/usr/local/lib/node_modules/snarkjs/src/calculateWitness.js:104:14)
    at Object.__f [as MultiMux3] (eval at Circuit (/usr/local/lib/node_modules/snarkjs/src/circuit.js:46:33), <anonymous>:22:13)
ERROR: Error: 0 and 21888242871839275222246405745257275088548364400416034343698204186575808495617 are not co-prime

I guess that I use incorrect versions of node and other dependencies (Ubuntu 18.04, node 8.12, npm 6.4.1, snarkjs 0.1.14, circom 0.0.28). Please, specify which versions this example works with.

3q-coder avatar Jun 25 '19 16:06 3q-coder