Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add export and calldata for Sophia smart contract verifier #468

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

hanssv
Copy link

@hanssv hanssv commented Feb 15, 2024

This PR adds two commands:

zkey export sophiaverifier    Creates a verifier in Sophia (only for Groth16/BLS12-381)
     Usage:  snarkjs zkesov [circuit_final.zkey] [verifier.aes]
...
zkey export sophiacalldata    Generates call parameters for verifier.aes. Add -cli for CLI compiler format.
     Usage:  snarkjs zkesoc [public.json] [proof.json]

They add support for exporting and producing calldata for Sophia smart contract verifier. Sophia as built-in primitives for BLS12-381 so the template is entirely straightforward.

The contract export is tested in sophia_smart_contract_tests/.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant