-
Notifications
You must be signed in to change notification settings - Fork 410
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
bn256: added ExportSolidity method #46
Conversation
The new ExportSolidity function will be very helpful and I will test soon. Thanks. |
Hi.
|
…. Fix Solidity template
@crazybae thanks for trying this feature :-) . We are trying hard not to expose To convert a May expose that piece in a cleaner API in upcoming versions. |
Fixes #12 .
This PR adds a
ExportSolidity(w io.Writer)
method to thegroth16.VerifyingKey
interface.For curve != bn256, returns an error.
For bn256, it uses, as suggested by @weijiekoh an audited template (audit report here)
This is experimental and has not been thoroughly tested.
Usage:
Status: generated solidity code compiles (tested on https://remix.ethereum.org)