iden3 / snarkjs

zkSNARK implementation in JavaScript & WASM
GNU General Public License v3.0
1.73k stars 413 forks source link

snarkjs setup failing in nodejs 14.11 #66

Closed gokulsan closed 3 years ago

gokulsan commented 3 years ago

I am trying a simple factor multiplication circuit as give in the circom tutorial. I am able to compile the circuit as per the command >> circom circuit.circom --r1cs --wasm --sym

However the following snarkjs commands and steps are failing >>

snarkjs printconstraints -r circuit.r1cs -s circuit.sym snarkjs setup

jbaylina commented 3 years ago

seetup is discontinued. You need to do snarkjs zkey new. Pleaae, see the tutorial in the readme.

dvcrn commented 3 years ago

Hi! I found this issue while googling. When you previously generated pk and vk through setup, can you migrate those to zkey or do you have to start from 0? I wanted to see if I can use snarkjs over wasmsnark but don't have a zkey yet