[][src]Struct amcl_wrapper_ml::group_elem_g1::G1

pub struct G1 { /* fields omitted */ }

Methods

impl G1[src]

pub fn binary_scalar_mul(
    &self,
    h: &Self,
    a: &CurveOrderElement,
    b: &CurveOrderElement
) -> Self
[src]

Computes sum of 2 scalar multiplications. Faster than doing the scalar multiplications individually and then adding them. Uses lookup table returns selfa + hb

pub fn to_bytes(&self) -> [u8; 96][src]

pub fn to_compressed_bytes(&self) -> [u8; 48][src]

impl G1[src]

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

Return underlying elliptic curve point, ECP

pub fn scalar_mul_variable_time(&self, a: &CurveOrderElement) -> 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<G1>[src]

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

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

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

Trait Implementations

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

type Output = Self

The resulting type after applying the + operator.

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

type Output = G1

The resulting type after applying the + operator.

impl Add<G1> for G1[src]

type Output = Self

The resulting type after applying the + operator.

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

type Output = G1

The resulting type after applying the + operator.

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

impl AddAssign<G1> for G1[src]

impl Clone for G1[src]

impl Debug for G1[src]

impl Default for G1[src]

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

impl Display for G1[src]

impl Drop for G1[src]

impl Eq for G1[src]

impl<'_> From<&'_ [u8; 48]> for G1[src]

impl<'_> From<&'_ [u8; 96]> for G1[src]

impl<'_> From<&'_ [u8; 97]> for G1[src]

impl<'_> From<&'_ ECP> for G1[src]

impl<'a> From<&'a G1> for G1LookupTable[src]

impl From<[u8; 48]> for G1[src]

impl From<[u8; 96]> for G1[src]

impl From<[u8; 97]> for G1[src]

impl From<ECP> for G1[src]

impl GroupElement for G1[src]

fn generator() -> Self[src]

This is an arbitrary choice. Any group element can be a generator

impl GroupElementVector<G1> for G1Vector[src]

impl Hash for G1[src]

impl<'_> Mul<&'_ CurveOrderElement> for G1[src]

type Output = Self

The resulting type after applying the * operator.

impl<'_, '_> Mul<&'_ CurveOrderElement> for &'_ G1[src]

type Output = G1

The resulting type after applying the * operator.

impl<'_> Mul<&'_ G1> for CurveOrderElement[src]

type Output = G1

The resulting type after applying the * operator.

impl<'_, '_> Mul<&'_ G1> for &'_ CurveOrderElement[src]

type Output = G1

The resulting type after applying the * operator.

impl Mul<CurveOrderElement> for G1[src]

type Output = Self

The resulting type after applying the * operator.

impl<'_> Mul<CurveOrderElement> for &'_ G1[src]

type Output = G1

The resulting type after applying the * operator.

impl Mul<G1> for CurveOrderElement[src]

type Output = G1

The resulting type after applying the * operator.

impl<'_> Mul<G1> for &'_ CurveOrderElement[src]

type Output = G1

The resulting type after applying the * operator.

impl Neg for G1[src]

type Output = Self

The resulting type after applying the - operator.

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

type Output = G1

The resulting type after applying the - operator.

impl PartialEq<G1> for G1[src]

impl Serialize for G1[src]

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

type Output = Self

The resulting type after applying the - operator.

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

type Output = G1

The resulting type after applying the - operator.

impl Sub<G1> for G1[src]

type Output = Self

The resulting type after applying the - operator.

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

type Output = G1

The resulting type after applying the - operator.

impl<'a> SubAssign<&'a G1> for G1[src]

impl SubAssign<G1> for G1[src]

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

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

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

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

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[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<V, T> VZip<V> for T where
    V: MultiLane<T>, 

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