Module iota::groth16
- Struct
Curve
- Struct
PreparedVerifyingKey
- Struct
PublicProofInputs
- Struct
ProofPoints
- Constants
- Function
bls12381
- Function
bn254
- Function
pvk_from_bytes
- Function
pvk_to_bytes
- Function
public_proof_inputs_from_bytes
- Function
proof_points_from_bytes
- Function
prepare_verifying_key
- Function
prepare_verifying_key_internal
- Function
verify_groth16_proof
- Function
verify_groth16_proof_internal
Struct Curve
Represents an elliptic curve construction to be used in the verifier. Currently we support BLS12-381 and BN254.
This should be given as the first parameter to prepare_verifying_key
or verify_groth16_proof
.
public struct Curve has copy, drop, store
Fields
id: u8
Struct PreparedVerifyingKey
A PreparedVerifyingKey
consisting of four components in serialized form.
public struct PreparedVerifyingKey has copy, drop, store
Fields
vk_gamma_abc_g1_bytes: vector<u8>
alpha_g1_beta_g2_bytes: vector<u8>
gamma_g2_neg_pc_bytes: vector<u8>
delta_g2_neg_pc_bytes: vector<u8>