You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are developing a DSL called Keelung and want it to be Snarkjs-compatible, we've been able to successfully generate a R1CS file quad.r1cs and a witness quad.wtns, which we can check that they are valid by r1cs info and wtns check:
R1CS and witness generated with Circom in the README on the other hand generates a zkey that can be verified successfully. It seems to me that verifying after generating a new zkey should always work because verifying in this case seems to be comparing two identical zkeys (https://github.com/iden3/snarkjs/blob/master/src/zkey_verify_fromr1cs.js#L23). I assume there's a bug when generating or reading the zkey files.
We are developing a DSL called Keelung and want it to be Snarkjs-compatible, we've been able to successfully generate a R1CS file
quad.r1cs
and a witnessquad.wtns
, which we can check that they are valid byr1cs info
andwtns check
:But right after generating a zkey with
groth16 setup
,zkey verify
fails:R1CS and witness generated with Circom in the README on the other hand generates a zkey that can be verified successfully. It seems to me that verifying after generating a new zkey should always work because verifying in this case seems to be comparing two identical zkeys (https://github.com/iden3/snarkjs/blob/master/src/zkey_verify_fromr1cs.js#L23). I assume there's a bug when generating or reading the zkey files.
This is our
quad.r1cs
in hex:And
quad.wtns
in hex:For more info, they are generated from our example
quad
in Quad.hs.The text was updated successfully, but these errors were encountered: