Struct threshold_crypto::G2Affine
source · pub struct G2Affine { /* private fields */ }
Trait Implementations§
source§impl CurveAffine for G2Affine
impl CurveAffine for G2Affine
type Engine = Bls12
type Scalar = Fr
type Base = Fq2
type Prepared = G2Prepared
type Projective = G2
type Uncompressed = G2Uncompressed
type Compressed = G2Compressed
type Pair = G1Affine
type PairingResult = Fq12
source§fn is_zero(&self) -> bool
fn is_zero(&self) -> bool
Determines if this point represents the point at infinity; the
additive identity. Read more
source§fn mul<S>(&self, by: S) -> G2where
S: Into<<<G2Affine as CurveAffine>::Scalar as PrimeField>::Repr>,
fn mul<S>(&self, by: S) -> G2where
S: Into<<<G2Affine as CurveAffine>::Scalar as PrimeField>::Repr>,
Performs scalar multiplication of this element with mixed addition.
source§fn prepare(&self) -> <G2Affine as CurveAffine>::Prepared
fn prepare(&self) -> <G2Affine as CurveAffine>::Prepared
Prepares this element for pairing purposes.
source§fn pairing_with(
&self,
other: &<G2Affine as CurveAffine>::Pair
) -> <G2Affine as CurveAffine>::PairingResult
fn pairing_with(
&self,
other: &<G2Affine as CurveAffine>::Pair
) -> <G2Affine as CurveAffine>::PairingResult
Perform a pairing
source§fn into_projective(&self) -> G2
fn into_projective(&self) -> G2
Converts this element into its affine representation.
source§fn into_compressed(&self) -> Self::Compressed
fn into_compressed(&self) -> Self::Compressed
Converts this element into its compressed encoding, so long as it’s not
the point at infinity. Read more
source§fn into_uncompressed(&self) -> Self::Uncompressed
fn into_uncompressed(&self) -> Self::Uncompressed
Converts this element into its uncompressed encoding, so long as it’s not
the point at infinity. Read more