Skip to main content

create_proof

Function create_proof 

Source
pub async fn create_proof<E, G, C, R>(
    circuit: C,
    pk: ProvingKey<'_, G>,
    gpu: &GpuContext<G>,
    rng: &mut R,
) -> Result<Proof<E>>
where E: MultiMillerLoop, C: Circuit<G::Scalar>, G: GpuCurve<Engine = E, Scalar = E::Fr, G1 = E::G1, G2 = E::G2, G1Affine = E::G1Affine, G2Affine = E::G2Affine> + Send, R: RngCore,
Expand description

Create a new Groth16 proof.

Uses a GpuProvingKey to skip per-proof base uploads and Montgomery conversion, reusing pre-uploaded GPU buffers across proofs.