Module snarkvm_wasm::groth16[][src]

An implementation of the Groth16 zkSNARK.

Modules

snark

Groth16 zkSNARK construction.

Structs

Groth16

Note: V should serialize its contents to Vec<E::Fr> in the same order as during the constraint generation.

KeypairAssembly

This is our assembly structure that we’ll use to synthesize the circuit into a QAP.

Parameters

Full public (prover and verifier) parameters for the Groth16 zkSNARK.

PreparedVerifyingKey

Preprocessed verification key parameters that enable faster verification at the expense of larger size in memory.

Proof

A proof in the Groth16 SNARK.

ProvingAssignment
VerifyingKey

A verification key in the Groth16 SNARK.

Functions

create_proof
create_proof_no_zk
create_random_proof
generate_parameters

Create parameters for a circuit, given some toxic waste.

generate_random_parameters

Generates a random common reference string for a circuit.

prepare_verifying_key
verify_proof