pub struct G2 { /* private fields */ }Trait Implementations§
impl Copy for G2
Source§impl CurveProjective for G2
impl CurveProjective for G2
type Engine = Bn256
type Scalar = Fr
type Base = Fq2
type Affine = G2Affine
Source§fn is_normalized(&self) -> bool
fn is_normalized(&self) -> bool
Checks if the point is already “normalized” so that
cheap affine conversion is possible.
Source§fn batch_normalization(v: &mut [G2])
fn batch_normalization(v: &mut [G2])
Normalizes a slice of projective elements so that
conversion to affine is cheap.
Source§fn add_assign(&mut self, other: &G2)
fn add_assign(&mut self, other: &G2)
Adds another element to this element.
Source§fn add_assign_mixed(&mut self, other: &<G2 as CurveProjective>::Affine)
fn add_assign_mixed(&mut self, other: &<G2 as CurveProjective>::Affine)
Adds an affine element to this element.
Source§fn mul_assign<S>(&mut self, other: S)
fn mul_assign<S>(&mut self, other: S)
Performs scalar multiplication of this element.
Source§fn into_affine(&self) -> G2Affine
fn into_affine(&self) -> G2Affine
Converts this element into its affine representation.
Source§fn recommended_wnaf_for_scalar(
scalar: <<G2 as CurveProjective>::Scalar as PrimeField>::Repr,
) -> usize
fn recommended_wnaf_for_scalar( scalar: <<G2 as CurveProjective>::Scalar as PrimeField>::Repr, ) -> usize
Recommends a wNAF window table size given a scalar. Always returns a number
between 2 and 22, inclusive.
Source§fn recommended_wnaf_for_num_scalars(num_scalars: usize) -> usize
fn recommended_wnaf_for_num_scalars(num_scalars: usize) -> usize
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.
Source§fn sub_assign(&mut self, other: &Self)
fn sub_assign(&mut self, other: &Self)
Subtracts another element from this element.
impl Eq for G2
Auto Trait Implementations§
impl Freeze for G2
impl RefUnwindSafe for G2
impl Send for G2
impl Sync for G2
impl Unpin for G2
impl UnsafeUnpin for G2
impl UnwindSafe for G2
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more