Minimal Anti Collusion Infrastructure (MACI) / generateAndVerifyProof
Function: generateAndVerifyProof()
generateAndVerifyProof(
inputs,zkeyPath,useWasm,rapidsnarkExePath,witnessExePath,wasmPath):Promise<string[]>
Defined in: sdk/ts/utils/proofs.ts:22
Generate and verify poll proof
Parameters
inputs
TCircuitInputs
the inputs to the circuit
zkeyPath
string
the path to the zkey
useWasm
whether we want to use the wasm witness or not
boolean | undefined
rapidsnarkExePath
the path to the rapidnsark binary
string | undefined
witnessExePath
the path to the compiled witness binary
string | undefined
wasmPath
the path to the wasm witness
string | undefined
Returns
Promise<string[]>
proof - an array of strings