[−][src]Struct amcl_wrapper::extension_field_gt::GT
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]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'a>,
[src]
D: Deserializer<'a>,
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.
fn mul(self, other: >) -> Self
[src]
impl<'_, '_> Mul<&'_ GT> for &'_ GT
[src]
type Output = GT
The resulting type after applying the *
operator.
fn mul(self, other: >) -> GT
[src]
impl Mul<GT> for GT
[src]
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, other: GT) -> Self
[src]
impl<'_> Mul<GT> for &'_ GT
[src]
type Output = GT
The resulting type after applying the *
operator.
fn mul(self, other: GT) -> GT
[src]
impl PartialEq<GT> for GT
[src]
impl Serialize for GT
[src]
impl Zeroize for GT
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
fn vzip(self) -> V
impl<Z> Zeroize for Z where
Z: DefaultIsZeroes,
[src]
Z: DefaultIsZeroes,