Readonly
alphaThe alpha * G
, where G
is the generator of G1
Readonly
betaThe alpha * H
, where H
is the generator of G2
Readonly
deltaThe delta * H
, where H
is the generator of G2
Readonly
gammaThe gamma^{-1} * (beta * a_i + alpha * b_i + c_i) * H
, where H is the generator of G1
Readonly
gammaThe 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
Static
fromConverts a Groth16VerificationKeyResponse object into a Groth16VerificationKey instance.
The Groth16VerificationKeyResponse object containing the verification key data.
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.