Skip to content

Versions of dependencies #6

@3q-coder

Description

@3q-coder

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions