Struct pairing_ce::bn256::G1[][src]

pub struct G1 { /* fields omitted */ }

Trait Implementations

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 CurveProjective for G1[src]

type Engine = Bn256

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]

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 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]

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]

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]

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]

Subtracts another element from this element.

impl Debug for G1[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

impl Display for G1[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

impl From<G1> for G1Affine[src]

fn from(p: G1) -> G1Affine[src]

Performs the conversion.

impl From<G1Affine> for G1[src]

fn from(p: G1Affine) -> G1[src]

Performs the conversion.

impl PartialEq<G1> 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

#[must_use]
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 Copy for G1[src]

impl Eq for G1[src]

impl StructuralEq for G1[src]

Auto Trait Implementations

impl RefUnwindSafe for G1

impl Send for G1

impl Sync for G1

impl Unpin for G1

impl UnwindSafe for G1

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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]

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

impl<T> ToString for T where
    T: Display + ?Sized
[src]

pub default fn to_string(&self) -> String[src]

Converts the given value to a String. Read more

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.