ReadonlyalphaThe alpha * G, where G is the generator of G1
ReadonlybetaThe alpha * H, where H is the generator of G2
ReadonlydeltaThe delta * H, where H is the generator of G2
ReadonlygammaThe gamma^{-1} * (beta * a_i + alpha * b_i + c_i) * H, where H is the generator of G1
ReadonlygammaThe gamma * H, where H is the generator of G2
Converts the verification key to a JSON format compatible with snarkjs groth16.verify
An object containing the verification key in snarkjs format
StaticfromConverts a Groth16VerificationKeyResponse object into a Groth16VerificationKey instance.
The Groth16VerificationKeyResponse object containing the verification key data.
The response containing the Groth16 verification key, including the alpha_g1 component.
A Groth16VerificationKey instance constructed from the provided response data.
Calculates the hash of the serialized form of the verification key. This is useful for comparing verification keys or using them as unique identifiers.
The SHA3-256 hash of the serialized verification key as a Uint8Array
Verifies a Groth16 proof using the verification key given the public inputs hash and the proof.
The Groth16 proof
The public inputs hash
true if the proof is valid
Represents the verification key stored on-chain used to verify Groth16 proofs.