[][src]Struct amcl_wrapper::group_elem_g2::G2

pub struct G2 { /* fields omitted */ }

Methods

impl G2[src]

pub fn to_ecp(&self) -> GroupG2[src]

Return underlying elliptic curve point, ECP

pub fn scalar_mul_variable_time(&self, a: &FieldElement) -> Self[src]

Multiply point on the curve (element of group G1) with a scalar. Variable time operation Uses wNAF.

pub fn get_multiples(&self, n: usize) -> Vec<G2>[src]

Return multiples of itself. eg. Given n=5, returns self, 2self, 3self, 4self, 5self

pub fn to_wnaf_lookup_table(&self, width: usize) -> G2LookupTable[src]

pub fn wnaf_mul(table: &G2LookupTable, wnaf: &[i8]) -> Self[src]

Trait Implementations

impl GroupElement for G2[src]

impl GroupElementVector<G2> for G2Vector[src]

impl Eq for G2[src]

impl Drop for G2[src]

impl Default for G2[src]

impl Clone for G2[src]

impl PartialEq<G2> for G2[src]

impl From<ECP2> for G2[src]

impl<'_> From<&'_ ECP2> for G2[src]

impl<'_> From<&'_ [u8; 192]> for G2[src]

impl<'a> From<&'a G2> for G2LookupTable[src]

impl Hash for G2[src]

impl Add<G2> for G2[src]

type Output = Self

The resulting type after applying the + operator.

impl<'_> Add<G2> for &'_ G2[src]

type Output = G2

The resulting type after applying the + operator.

impl<'a> Add<&'a G2> for G2[src]

type Output = Self

The resulting type after applying the + operator.

impl<'a, '_> Add<&'a G2> for &'_ G2[src]

type Output = G2

The resulting type after applying the + operator.

impl Sub<G2> for G2[src]

type Output = Self

The resulting type after applying the - operator.

impl<'_> Sub<G2> for &'_ G2[src]

type Output = G2

The resulting type after applying the - operator.

impl<'a> Sub<&'a G2> for G2[src]

type Output = Self

The resulting type after applying the - operator.

impl<'a, '_> Sub<&'a G2> for &'_ G2[src]

type Output = G2

The resulting type after applying the - operator.

impl Mul<FieldElement> for G2[src]

type Output = Self

The resulting type after applying the * operator.

impl<'_> Mul<&'_ FieldElement> for G2[src]

type Output = Self

The resulting type after applying the * operator.

impl<'_> Mul<FieldElement> for &'_ G2[src]

type Output = G2

The resulting type after applying the * operator.

impl<'_, '_> Mul<&'_ FieldElement> for &'_ G2[src]

type Output = G2

The resulting type after applying the * operator.

impl Mul<G2> for FieldElement[src]

type Output = G2

The resulting type after applying the * operator.

impl<'_> Mul<&'_ G2> for FieldElement[src]

type Output = G2

The resulting type after applying the * operator.

impl<'_> Mul<G2> for &'_ FieldElement[src]

type Output = G2

The resulting type after applying the * operator.

impl<'_, '_> Mul<&'_ G2> for &'_ FieldElement[src]

type Output = G2

The resulting type after applying the * operator.

impl Neg for G2[src]

type Output = Self

The resulting type after applying the - operator.

impl<'_> Neg for &'_ G2[src]

type Output = G2

The resulting type after applying the - operator.

impl AddAssign<G2> for G2[src]

impl<'a> AddAssign<&'a G2> for G2[src]

impl Debug for G2[src]

impl Display for G2[src]

impl Serialize for G2[src]

impl<'a> Deserialize<'a> for G2[src]

impl Zeroize for G2[src]

Auto Trait Implementations

impl Sync for G2

impl Send for G2

impl Unpin for G2

impl UnwindSafe for G2

impl RefUnwindSafe for G2

Blanket Implementations

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

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

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

type Owned = T

The resulting type after obtaining ownership.

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

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.

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.

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

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<Z> Zeroize for Z where
    Z: DefaultIsZeroes
[src]