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
is a byte array. So I believe if I can turn the above json into such a byte array then the verification should pass. But the question is how to do that in Rust?
The text was updated successfully, but these errors were encountered:
@ananas-block is there a simple example of how we can compare the
proof.json
created viasnarkjs
into the values required by this library.More specifically, the circom tool set allows you to run
snarkjs groth16 prove
which creates a json for the proof. That file has the following fieldsHave tried multiple combinations but I can make the verifier verify successfully.
Let me share an example of such json file:
Not sure how to convert those three values to value required by the
Groth16Verifier
I've tried to follow the tests here
groth16-solana/src/groth16.rs
Line 350 in 8892dae
The PROOF value here
groth16-solana/src/groth16.rs
Line 320 in 8892dae
The text was updated successfully, but these errors were encountered: