-
Notifications
You must be signed in to change notification settings - Fork 433
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
WIP: Generate plugins #410
base: master
Are you sure you want to change the base?
Conversation
cc @sigmachirality for any thoughts |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs to be moved to its own repo and published as a package.
src/zkey_export_verifier.js
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs to check the request protocol is supported and throw good error messages if not.
src/zkey_export_calldata.js
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs to check the request protocol is supported and throw good error messages if not.
// solidity genverifier [circuit_final.zkey] [verifier.sol] | ||
async function zkeyExportSolidityVerifier(params, options) { | ||
// zkey export verifier [circuit_final.zkey] [verifier.sol] | ||
async function zkeyExportVerifier(params, options) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This function needs to catch any error about unsupported protocols and show the user the plugin name and unsupported protocol name
// solidity gencall <public.json> <proof.json> | ||
async function zkeyExportSolidityCalldata(params, options) { | ||
// zkey export calldata <public.json> <proof.json> | ||
async function zkeyExportCalldata(params, options) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This function needs to catch any error about unsupported protocols and show the user the plugin name and unsupported protocol name
This is a WIP implementation of "generate" plugins, which provide verifier and calldata generator functions for the protocols that snarkjs supports.
Closes #340