Struct pairing_ce::bls12_381::G1Affine
source · pub struct G1Affine { /* private fields */ }
Trait Implementations
sourceimpl 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
sourcefn is_zero(&self) -> bool
fn is_zero(&self) -> bool
Determines if this point represents the point at infinity; the
additive identity. Read more
sourcefn 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.
sourcefn pairing_with(&self, other: &Self::Pair) -> Self::PairingResult
fn pairing_with(&self, other: &Self::Pair) -> Self::PairingResult
Perform a pairing
sourcefn into_projective(&self) -> G1
fn into_projective(&self) -> G1
Converts this element into its affine representation.
sourcefn 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 Read more
sourcefn 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 Read more
sourcefn 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 Read more
sourcefn 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 Read more
sourcefn 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
sourcefn 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
sourceimpl<'de> Deserialize<'de> for G1Affine
impl<'de> Deserialize<'de> for G1Affine
sourcefn 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
sourceimpl RawEncodable for G1Affine
impl RawEncodable for G1Affine
sourcefn 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 Read more
sourcefn 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
sourcefn 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
impl Copy for G1Affine
impl Eq for G1Affine
impl StructuralEq for G1Affine
impl StructuralPartialEq for G1Affine
Auto Trait Implementations
impl RefUnwindSafe for G1Affine
impl Send for G1Affine
impl Sync for G1Affine
impl Unpin for G1Affine
impl UnwindSafe for G1Affine
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more