Struct threshold_crypto::G1Affine
source · pub struct G1Affine { /* private fields */ }
Trait Implementations§
source§impl CurveAffine for G1Affine
impl CurveAffine for G1Affine
type Engine = Bls12
type Scalar = Fr
type Base = Fq
type Prepared = G1Prepared
type Projective = G1
type Uncompressed = G1Uncompressed
type Compressed = G1Compressed
type Pair = G2Affine
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) -> G1where
S: Into<<<G1Affine as CurveAffine>::Scalar as PrimeField>::Repr>,
fn mul<S>(&self, by: S) -> G1where
S: Into<<<G1Affine as CurveAffine>::Scalar as PrimeField>::Repr>,
Performs scalar multiplication of this element with mixed addition.
source§fn prepare(&self) -> <G1Affine as CurveAffine>::Prepared
fn prepare(&self) -> <G1Affine as CurveAffine>::Prepared
Prepares this element for pairing purposes.
source§fn pairing_with(
&self,
other: &<G1Affine as CurveAffine>::Pair
) -> <G1Affine as CurveAffine>::PairingResult
fn pairing_with(
&self,
other: &<G1Affine as CurveAffine>::Pair
) -> <G1Affine as CurveAffine>::PairingResult
Perform a pairing
source§fn into_projective(&self) -> G1
fn into_projective(&self) -> G1
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