Struct pairing_ce::bls12_381::G2Affine [−][src]
pub struct G2Affine { /* fields omitted */ }
Trait Implementations
impl CurveAffine for G2Affine
[src]
impl CurveAffine for G2Affine
[src]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
fn is_zero(&self) -> bool
[src]
fn is_zero(&self) -> bool
[src]Determines if this point represents the point at infinity; the additive identity. Read more
fn mul<S: Into<<Self::Scalar as PrimeField>::Repr>>(&self, by: S) -> G2
[src]
fn mul<S: Into<<Self::Scalar as PrimeField>::Repr>>(&self, by: S) -> G2
[src]Performs scalar multiplication of this element with mixed addition.
fn pairing_with(&self, other: &Self::Pair) -> Self::PairingResult
[src]
fn pairing_with(&self, other: &Self::Pair) -> Self::PairingResult
[src]Perform a pairing
fn into_projective(&self) -> G2
[src]
fn into_projective(&self) -> G2
[src]Converts this element into its affine representation.
fn as_xy(&self) -> (&Self::Base, &Self::Base)
[src]
fn as_xy(&self) -> (&Self::Base, &Self::Base)
[src]Returns references to underlying X and Y coordinates. Users should check for infinity outside of this call Read more
fn into_xy_unchecked(self) -> (Self::Base, Self::Base)
[src]
fn into_xy_unchecked(self) -> (Self::Base, Self::Base)
[src]Returns underlying X and Y coordinates. Users should check for infinity outside of this call Read more
fn from_xy_unchecked(x: Self::Base, y: Self::Base) -> Self
[src]
fn from_xy_unchecked(x: Self::Base, y: Self::Base) -> Self
[src]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
fn from_xy_checked(
x: Self::Base,
y: Self::Base
) -> Result<Self, GroupDecodingError>
[src]
fn from_xy_checked(
x: Self::Base,
y: Self::Base
) -> Result<Self, GroupDecodingError>
[src]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
fn into_compressed(&self) -> Self::Compressed
[src]
fn into_compressed(&self) -> Self::Compressed
[src]Converts this element into its compressed encoding, so long as it’s not the point at infinity. Read more
fn into_uncompressed(&self) -> Self::Uncompressed
[src]
fn into_uncompressed(&self) -> Self::Uncompressed
[src]Converts this element into its uncompressed encoding, so long as it’s not the point at infinity. Read more
impl Copy for G2Affine
[src]
impl Eq for G2Affine
[src]
impl StructuralEq for G2Affine
[src]
impl StructuralPartialEq for G2Affine
[src]
Auto Trait Implementations
impl RefUnwindSafe for G2Affine
impl Send for G2Affine
impl Sync for G2Affine
impl Unpin for G2Affine
impl UnwindSafe for G2Affine
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more