INNER CODE UNIT · Rust
default
arkworks-rs/groth16 · src/data_structures.rs:19
fn default() -> Self {
Self {
a: E::G1Affine::default(),
b: E::G2Affine::default(),
c: E::G1Affine::default(),
}
}
}
////////////////////////////////////////////////////////////////////////////////
/// A verification key in the Groth16 SNARK.
#[derive(Clone, Debug, PartialEq, CanonicalSerialize, CanonicalDeserialize)]
pub struct VerifyingKey<E: Pairing> {
/// The `alpha * G`, where `G` is the generator of `E::G1`.
pub alpha_g1: E::G1Affine,
/// The `alpha * H`, where `H` is the generator of `E::G2`.
pub beta_g2: E::G2Affine,