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 Projective = G1
type Uncompressed = G1Uncompressed
type Compressed = G1Compressed
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) -> G1 where
S: Into<<<G1Affine as CurveAffine>::Scalar as PrimeField>::Repr>,
pub fn mul<S>(&self, by: S) -> G1 where
S: Into<<<G1Affine as CurveAffine>::Scalar as PrimeField>::Repr>,
Performs scalar multiplication of this element with mixed addition.
sourcepub fn into_projective(&self) -> G1
pub fn into_projective(&self) -> G1
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 G1Affine
impl PairingCurveAffine for G1Affine
type Prepared = G1Prepared
type Pair = G2Affine
type PairingResult = Fq12
sourcepub fn prepare(&self) -> <G1Affine as PairingCurveAffine>::Prepared
pub fn prepare(&self) -> <G1Affine as PairingCurveAffine>::Prepared
Prepares this element for pairing purposes.
sourcepub fn pairing_with(
&self,
other: &<G1Affine as PairingCurveAffine>::Pair
) -> <G1Affine as PairingCurveAffine>::PairingResult
pub fn pairing_with(
&self,
other: &<G1Affine as PairingCurveAffine>::Pair
) -> <G1Affine as PairingCurveAffine>::PairingResult
Perform a pairing
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 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