Skip to main content
Version: 2.0.0-beta-4

Prover

Prover​

The prover interface is used to write custom implementations for creating and verifying proofs. This abstracts away the logic of loading the proving keys. For example, a prover implementation could load the keys from disk, from a remote url, etc.

info

See the defaultProver for a nodejs implementation.

See the webProver for a browser compatible implementation.

verifyProof​

verifyProof: (
name: string | Circuit,
publicSignals: any,
proof: any
) => Promise<boolean>

genProofAndPublicSignals​

genProofAndPublicSignals: (
proofType: string | Circuit,
inputs: any
) => Promise<{
proof: any
publicSignals: any
}>

getVKey​

getVKey: (name: string | Circuit) => Promise<any>