[][src]Struct amcl_wrapper::extension_field_gt::GT

pub struct GT { /* fields omitted */ }

Implementations

impl GT[src]

pub fn new() -> Self[src]

pub fn ate_pairing(g1: &G1, g2: &G2) -> Self[src]

Reduced ate pairing. Returns e(g1, g2)

pub fn ate_2_pairing(g1: &G1, g2: &G2, h1: &G1, h2: &G2) -> Self[src]

Reduced ate double pairing. Returns e(g1, g2) * e(h1, h2)

pub fn ate_multi_pairing(elems: Vec<(&G1, &G2)>) -> Self[src]

Reduced ate multi pairing. Takes a vector of tuples of group elements G1 and G2 as Vec<(&G1, &G2)>. Returns the product of their pairings. More efficient than using ate_pairing or ate_2_pairing and multiplying results

pub fn inner_product(left: &[G1], right: &[G2]) -> Result<Self, ValueError>[src]

Inner product of 2 vectors in group G1 and G2 where the product is the pairing operation Equivalent to a multi-pairing

pub fn product(a: &Self, b: &Self) -> Self[src]

pub fn pow(&self, e: &FieldElement) -> Self[src]

pub fn inverse(&self) -> Self[src]

Return inverse of itself

pub fn inverse_mut(&mut self)[src]

pub fn is_one(&self) -> bool[src]

pub fn one() -> Self[src]

pub fn to_fp12(&self) -> FP12[src]

pub fn to_bytes(&self) -> Vec<u8>[src]

pub fn from_bytes(bytes: &[u8]) -> Result<Self, SerzDeserzError>[src]

pub fn write_to_slice(&self, target: &mut [u8]) -> Result<(), SerzDeserzError>[src]

Writes bytes to given slice. Raises exception when given slice is not of desired length.

pub fn write_to_slice_unchecked(&self, target: &mut [u8])[src]

Writes bytes to given slice. Will panic when given slice is not of desired length.

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

pub fn from_hex(string: String) -> Result<Self, SerzDeserzError>[src]

Trait Implementations

impl Clone for GT[src]

impl Debug for GT[src]

impl Default for GT[src]

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

impl Display for GT[src]

impl Drop for GT[src]

impl<'_> From<&'_ [u8; 576]> for GT[src]

impl<'_> From<&'_ FP12> for GT[src]

impl From<FP12> for GT[src]

impl<'_> Mul<&'_ GT> for GT[src]

type Output = Self

The resulting type after applying the * operator.

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

type Output = GT

The resulting type after applying the * operator.

impl Mul<GT> for GT[src]

type Output = Self

The resulting type after applying the * operator.

impl<'_> Mul<GT> for &'_ GT[src]

type Output = GT

The resulting type after applying the * operator.

impl PartialEq<GT> for GT[src]

impl Serialize for GT[src]

impl Zeroize for GT[src]

Auto Trait Implementations

impl RefUnwindSafe for GT

impl Send for GT

impl Sync for GT

impl Unpin for GT

impl UnwindSafe for GT

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]