pub struct G2Affine { /* private fields */ }
Trait Implementations
sourceimpl CurveAffine for G2Affine
impl CurveAffine for G2Affine
type Engine = Bls12
type Scalar = Fr
type Base = Fq2
type Projective = G2
type Uncompressed = G2Uncompressed
type Compressed = G2Compressed
sourcepub fn is_zero(&self) -> bool
pub fn is_zero(&self) -> bool
Determines if this point represents the point at infinity; the additive identity. Read more
sourcepub fn mul<S>(&self, by: S) -> G2 where
S: Into<<<G2Affine as CurveAffine>::Scalar as PrimeField>::Repr>,
pub fn mul<S>(&self, by: S) -> G2 where
S: Into<<<G2Affine as CurveAffine>::Scalar as PrimeField>::Repr>,
Performs scalar multiplication of this element with mixed addition.
sourcepub fn into_projective(&self) -> G2
pub fn into_projective(&self) -> G2
Converts this element into its affine representation.
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 PairingCurveAffine for G2Affine
impl PairingCurveAffine for G2Affine
type Prepared = G2Prepared
type Pair = G1Affine
type PairingResult = Fq12
sourcepub fn prepare(&self) -> <G2Affine as PairingCurveAffine>::Prepared
pub fn prepare(&self) -> <G2Affine as PairingCurveAffine>::Prepared
Prepares this element for pairing purposes.
sourcepub fn pairing_with(
&self,
other: &<G2Affine as PairingCurveAffine>::Pair
) -> <G2Affine as PairingCurveAffine>::PairingResult
pub fn pairing_with(
&self,
other: &<G2Affine as PairingCurveAffine>::Pair
) -> <G2Affine as PairingCurveAffine>::PairingResult
Perform a pairing
impl Copy for G2Affine
impl Eq for G2Affine
impl StructuralEq for G2Affine
impl StructuralPartialEq for G2Affine
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more