Function gpcPreProve

  • Performs only the preparatory steps of gpcProve, returning all of the circuit-related info needed to generate a proof using the "@pcd/gpcircuits" package, or another user-supplied proving stack.

    Inputs will be fully validated for structural soundness in the same way as when generating a proof. See gpcProve for more details on inputs and operation.

    Parameters

    • proofConfig: GPCProofConfig

      the configuration specifying the constraints to be proven.

    • proofInputs: GPCProofInputs

      the input data (PODs and other values) specific to this proof.

    • Optional circuitFamily: GPCCircuitFamily = DefaultCircuitFamily

      the circuit family to pick the circuit from. This must be sorted in order of increasing circuit size (constraint count).

    Returns {
        boundConfig: GPCBoundConfig;
        circuitDesc: ProtoPODGPCCircuitDesc;
        circuitInputs: ProtoPODGPCInputs;
    }

    info necessary to generate a proof with a specific circuit, including the bound proof config, circuit description, and its public and private input signals

    Throws

    TypeError if any of the arguments is malformed

    Throws

    Error if it is impossible to create a valid proof

Generated using TypeDoc