Struct pairing_ce::bls12_381::G1Affine [−][src]
pub struct G1Affine { /* fields omitted */ }
Trait Implementations
impl CurveAffine for G1Affine
[src]
impl CurveAffine for G1Affine
[src]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
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) -> G1
[src]
fn mul<S: Into<<Self::Scalar as PrimeField>::Repr>>(&self, by: S) -> G1
[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) -> G1
[src]
fn into_projective(&self) -> G1
[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 RawEncodable for G1Affine
[src]
impl RawEncodable for G1Affine
[src]fn into_raw_uncompressed_le(&self) -> Self::Uncompressed
[src]
fn into_raw_uncompressed_le(&self) -> Self::Uncompressed
[src]Converts this element into its uncompressed encoding, so long as it’s not the point at infinity. Leaves coordinates in Montgommery form Read more
fn from_raw_uncompressed_le_unchecked(
encoded: &Self::Uncompressed,
_infinity: bool
) -> Result<Self, GroupDecodingError>
[src]
fn from_raw_uncompressed_le_unchecked(
encoded: &Self::Uncompressed,
_infinity: bool
) -> Result<Self, GroupDecodingError>
[src]Creates a point from raw encoded coordinates without checking on curve
fn from_raw_uncompressed_le(
encoded: &Self::Uncompressed,
_infinity: bool
) -> Result<Self, GroupDecodingError>
[src]
fn from_raw_uncompressed_le(
encoded: &Self::Uncompressed,
_infinity: bool
) -> Result<Self, GroupDecodingError>
[src]Creates a point from raw encoded coordinates
impl Copy for G1Affine
[src]
impl Eq for G1Affine
[src]
impl StructuralEq for G1Affine
[src]
impl StructuralPartialEq for G1Affine
[src]
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
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