Struct pairing::bls12_381::G1
[−]
[src]
pub struct G1 { /* fields omitted */ }
Trait Implementations
impl Copy for G1
[src]
impl Clone for G1
[src]
fn clone(&self) -> G1
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for G1
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Eq for G1
[src]
impl Display for G1
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl PartialEq for G1
[src]
fn eq(&self, other: &G1) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl Rand for G1
[src]
fn rand<R: Rng>(rng: &mut R) -> Self
[src]
Generates a random instance of this type using the specified source of randomness. Read more
impl CurveProjective for G1
[src]
type Engine = Bls12
type Scalar = Fr
type Base = Fq
type Affine = G1Affine
fn zero() -> Self
[src]
Returns the additive identity.
fn one() -> Self
[src]
Returns a fixed generator of unknown exponent.
fn is_zero(&self) -> bool
[src]
Determines if this point is the point at infinity.
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]
Normalizes a slice of projective elements so that conversion to affine is cheap. Read more
fn double(&mut self)
[src]
Doubles this element.
fn add_assign(&mut self, other: &Self)
[src]
Adds another element to this element.
fn add_assign_mixed(&mut self, other: &Self::Affine)
[src]
Adds an affine element to this element.
fn negate(&mut self)
[src]
Negates this element.
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]
Converts this element into its affine representation.
fn recommended_wnaf_for_scalar(
scalar: <Self::Scalar as PrimeField>::Repr
) -> usize
[src]
scalar: <Self::Scalar as PrimeField>::Repr
) -> usize
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]
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 sub_assign(&mut self, other: &Self)
[src]
Subtracts another element from this element.