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

gnark should be able to export a Solidity verifier #12

Closed
gbotrel opened this issue Mar 6, 2020 · 1 comment
Closed

gnark should be able to export a Solidity verifier #12

gbotrel opened this issue Mar 6, 2020 · 1 comment

Comments

@gbotrel
Copy link
Collaborator

gbotrel commented Mar 6, 2020

All needed informations should be in the VerifyingKey data structure.

The export / convert function takes as input the VerifyingKey and a io.Writer . Writes on the io.Writer a solidity smart contract that takes as input a proof and a set of public inputs (as defined in the VerifyingKey).

Low priority task.

@weijiekoh
Copy link

I'd suggest using the verifier code here as is has been audited: https://github.com/appliedzkp/semaphore/blob/master/contracts/sol/verifier.sol

Audit report: https://github.com/appliedzkp/semaphore/blob/master/audit/Audit%20Report%20Summary%20for%20Semaphore%20and%20MicroMix.pdf

@gbotrel gbotrel closed this as completed Jan 13, 2021
ruslangm added a commit to ruslangm/gnark that referenced this issue Feb 6, 2023
* Added keccak-f permutation function
* Added support of keccak256 sponge functions
* Added tests
---------

Co-authored-by: Ivo Kubjas <ivo.kubjas@consensys.net>
ThomasPiellard added a commit to ThomasPiellard/gnark that referenced this issue Jul 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants