Struct pairing_ce::bn256::G1 [−][src]
pub struct G1 { /* fields omitted */ }
Trait Implementations
impl CurveProjective for G1
[src]
impl CurveProjective for G1
[src]type Engine = Bn256
type Scalar = Fr
type Base = Fq
type Affine = G1Affine
fn is_normalized(&self) -> bool
[src]
fn is_normalized(&self) -> bool
[src]Checks if the point is already “normalized” so that cheap affine conversion is possible. Read more
fn batch_normalization(v: &mut [Self])
[src]
fn batch_normalization(v: &mut [Self])
[src]Normalizes a slice of projective elements so that conversion to affine is cheap. Read more
fn add_assign(&mut self, other: &Self)
[src]
fn add_assign(&mut self, other: &Self)
[src]Adds another element to this element.
fn add_assign_mixed(&mut self, other: &Self::Affine)
[src]
fn add_assign_mixed(&mut self, other: &Self::Affine)
[src]Adds an affine element to this element.
fn mul_assign<S: Into<<Self::Scalar as PrimeField>::Repr>>(&mut self, other: S)
[src]
fn mul_assign<S: Into<<Self::Scalar as PrimeField>::Repr>>(&mut self, other: S)
[src]Performs scalar multiplication of this element.
fn into_affine(&self) -> G1Affine
[src]
fn into_affine(&self) -> G1Affine
[src]Converts this element into its affine representation.
fn recommended_wnaf_for_scalar(
scalar: <Self::Scalar as PrimeField>::Repr
) -> usize
[src]
fn recommended_wnaf_for_scalar(
scalar: <Self::Scalar as PrimeField>::Repr
) -> usize
[src]Recommends a wNAF window table size given a scalar. Always returns a number between 2 and 22, inclusive. Read more
fn recommended_wnaf_for_num_scalars(num_scalars: usize) -> usize
[src]
fn recommended_wnaf_for_num_scalars(num_scalars: usize) -> usize
[src]Recommends a wNAF window size given the number of scalars you intend to multiply a base by. Always returns a number between 2 and 22, inclusive. Read more
fn as_xyz(&self) -> (&Self::Base, &Self::Base, &Self::Base)
[src]
fn as_xyz(&self) -> (&Self::Base, &Self::Base, &Self::Base)
[src]Returns references to underlying X, Y and Z coordinates. Users should check for infinity outside of this call Read more
fn into_xyz_unchecked(self) -> (Self::Base, Self::Base, Self::Base)
[src]
fn into_xyz_unchecked(self) -> (Self::Base, Self::Base, Self::Base)
[src]Returns underlying X, Y and Z coordinates. Users should check for infinity outside of this call Read more
fn from_xyz_unchecked(x: Self::Base, y: Self::Base, z: Self::Base) -> Self
[src]
fn from_xyz_unchecked(x: Self::Base, y: Self::Base, z: Self::Base) -> Self
[src]Creates a point from raw X, Y and Z coordinates. Point of infinity is encoded as (0,1,0) by default. On-curve check is NOT performed Read more
fn from_xyz_checked(
_x: Self::Base,
_y: Self::Base,
_z: Self::Base
) -> Result<Self, GroupDecodingError>
[src]
fn from_xyz_checked(
_x: Self::Base,
_y: Self::Base,
_z: Self::Base
) -> Result<Self, GroupDecodingError>
[src]Creates a point from raw X, Y and Z coordinates. Point of infinity is encoded as (0,1,0) by default. On-curve check is performed Read more
fn sub_assign(&mut self, other: &Self)
[src]
fn sub_assign(&mut self, other: &Self)
[src]Subtracts another element from this element.
impl Copy for G1
[src]
impl Eq for G1
[src]
impl StructuralEq for G1
[src]
Auto Trait Implementations
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