Skip to content

Conversation

phated
Copy link
Contributor

@phated phated commented Aug 15, 2023

This is a WIP implementation of "generate" plugins, which provide verifier and calldata generator functions for the protocols that snarkjs supports.

Closes #340

@phated
Copy link
Contributor Author

phated commented Aug 20, 2023

cc @sigmachirality for any thoughts

Copy link
Contributor Author

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.

Copy link
Contributor Author

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.

Copy link
Contributor Author

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) {
Copy link
Contributor Author

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) {
Copy link
Contributor Author

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

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.

verifier plugin system
1 participant