Struct pairing_ce::bls12_381::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.
source§fn mul<S: Into<<Self::Scalar as PrimeField>::Repr>>(&self, by: S) -> G1
fn mul<S: Into<<Self::Scalar as PrimeField>::Repr>>(&self, by: S) -> G1
Performs scalar multiplication of this element with mixed addition.
source§fn pairing_with(&self, other: &Self::Pair) -> Self::PairingResult
fn pairing_with(&self, other: &Self::Pair) -> Self::PairingResult
Perform a pairing
source§fn into_projective(&self) -> G1
fn into_projective(&self) -> G1
Converts this element into its affine representation.
source§fn as_xy(&self) -> (&Self::Base, &Self::Base)
fn as_xy(&self) -> (&Self::Base, &Self::Base)
Returns references to underlying X and Y coordinates. Users should check for infinity
outside of this call
source§fn into_xy_unchecked(self) -> (Self::Base, Self::Base)
fn into_xy_unchecked(self) -> (Self::Base, Self::Base)
Returns underlying X and Y coordinates. Users should check for infinity
outside of this call
source§fn from_xy_unchecked(x: Self::Base, y: Self::Base) -> Self
fn from_xy_unchecked(x: Self::Base, y: Self::Base) -> Self
Creates a point from raw X and Y coordinates. Point of infinity is encoded as (0,0) by default.
On-curve check is NOT performed
source§fn from_xy_checked(
x: Self::Base,
y: Self::Base
) -> Result<Self, GroupDecodingError>
fn from_xy_checked(
x: Self::Base,
y: Self::Base
) -> Result<Self, GroupDecodingError>
Creates a point from raw X and Y coordinates. Point of infinity is encoded as (0,0) by default.
On-curve check is performed
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.
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.
source§impl<'de> Deserialize<'de> for G1Affine
impl<'de> Deserialize<'de> for G1Affine
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<G1Affine> for G1Affine
impl PartialEq<G1Affine> for G1Affine
source§impl RawEncodable for G1Affine
impl RawEncodable for G1Affine
source§fn into_raw_uncompressed_le(&self) -> Self::Uncompressed
fn into_raw_uncompressed_le(&self) -> Self::Uncompressed
Converts this element into its uncompressed encoding, so long as it’s not
the point at infinity. Leaves coordinates in Montgommery form
source§fn from_raw_uncompressed_le_unchecked(
encoded: &Self::Uncompressed,
_infinity: bool
) -> Result<Self, GroupDecodingError>
fn from_raw_uncompressed_le_unchecked(
encoded: &Self::Uncompressed,
_infinity: bool
) -> Result<Self, GroupDecodingError>
Creates a point from raw encoded coordinates without checking on curve
source§fn from_raw_uncompressed_le(
encoded: &Self::Uncompressed,
_infinity: bool
) -> Result<Self, GroupDecodingError>
fn from_raw_uncompressed_le(
encoded: &Self::Uncompressed,
_infinity: bool
) -> Result<Self, GroupDecodingError>
Creates a point from raw encoded coordinates