What are the arguments and type arguments need to be passed in verify_proof function from module groth16_example::groth16 ? #436
Unanswered
mohan00710
asked this question in
Questions
Replies: 1 comment
-
Take a look at this unit test which demonstrates the usage. It uses bls12381 types (defined here) but you can easily modify it to bn254 types (defined here), which is your case? Note that G1/G2 elements that snarkjs gives you in proof/verification keys can be in projective coordinates
Let me know if you need more details. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Discord user ID
cypher0343
Describe your question in detail.
I have generated a ZK proof using snarkjs. How can I verify the generated proof on-chain in Aptos using the verify_proof function?
https://github.com/aptos-labs/aptos-core/blob/574fa48194ca42013b4b5171ec81ebfb5ea5ac14/aptos-move/move-examples/groth16_example/sources/groth16.move#L14
for example this is the proof that i generated
What error, if any, are you getting?
No response
What have you tried or looked at? Or how can we reproduce the error?
No response
Which operating system are you using?
macOS
Which SDK or tool are you using? (if any)
TypeScript SDK
Describe your environment or tooling in detail
No response
Beta Was this translation helpful? Give feedback.
All reactions