[−][src]Struct amcl_wrapper::group_elem_g2::G2
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]
fn new() -> Self
[src]
fn identity() -> Self
[src]
fn generator() -> Self
[src]
fn is_identity(&self) -> bool
[src]
fn set_to_identity(&mut self)
[src]
fn from_msg_hash(msg: &[u8]) -> Self
[src]
fn to_bytes(&self) -> Vec<u8>
[src]
fn from_bytes(bytes: &[u8]) -> Result<Self, SerzDeserzError>
[src]
fn add_assign_(&mut self, b: &Self)
[src]
fn sub_assign_(&mut self, b: &Self)
[src]
fn plus(&self, b: &Self) -> Self
[src]
fn minus(&self, b: &Self) -> Self
[src]
fn scalar_mul_const_time(&self, a: &FieldElement) -> Self
[src]
fn double(&self) -> Self
[src]
fn double_mut(&mut self)
[src]
fn to_hex(&self) -> String
[src]
fn from_hex(s: String) -> Result<Self, SerzDeserzError>
[src]
fn negation(&self) -> Self
[src]
fn is_extension() -> bool
[src]
fn has_correct_order(&self) -> bool
[src]
fn random() -> Self
[src]
fn random_using_rng<R: RngCore + CryptoRng>(rng: &mut R) -> Self
[src]
impl GroupElementVector<G2> for G2Vector
[src]
fn new(size: usize) -> Self
[src]
fn with_capacity(capacity: usize) -> Self
[src]
fn as_slice(&self) -> &[G2]
[src]
fn len(&self) -> usize
[src]
fn push(&mut self, value: G2)
[src]
fn append(&mut self, other: &mut Self)
[src]
fn pop(&mut self) -> Option<G2>
[src]
fn insert(&mut self, index: usize, element: G2)
[src]
fn remove(&mut self, index: usize) -> G2
[src]
fn sum(&self) -> G2
[src]
fn scale(&mut self, n: &FieldElement)
[src]
fn scaled_by(&self, n: &FieldElement) -> Self
[src]
fn plus(&self, b: &Self) -> Result<Self, ValueError>
[src]
fn minus(&self, b: &Self) -> Result<Self, ValueError>
[src]
fn iter(&self) -> Iter<G2>
[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]
fn hash<H: Hasher>(&self, state: &mut H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Add<G2> for G2
[src]
type Output = Self
The resulting type after applying the +
operator.
fn add(self, other: Self) -> Self
[src]
impl<'_> Add<G2> for &'_ G2
[src]
type Output = G2
The resulting type after applying the +
operator.
fn add(self, other: G2) -> G2
[src]
impl<'a> Add<&'a G2> for G2
[src]
type Output = Self
The resulting type after applying the +
operator.
fn add(self, other: &'a G2) -> Self
[src]
impl<'a, '_> Add<&'a G2> for &'_ G2
[src]
type Output = G2
The resulting type after applying the +
operator.
fn add(self, other: &'a G2) -> G2
[src]
impl Sub<G2> for G2
[src]
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, other: Self) -> Self
[src]
impl<'_> Sub<G2> for &'_ G2
[src]
type Output = G2
The resulting type after applying the -
operator.
fn sub(self, other: G2) -> G2
[src]
impl<'a> Sub<&'a G2> for G2
[src]
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, other: &'a G2) -> Self
[src]
impl<'a, '_> Sub<&'a G2> for &'_ G2
[src]
type Output = G2
The resulting type after applying the -
operator.
fn sub(self, other: &'a G2) -> G2
[src]
impl Mul<FieldElement> for G2
[src]
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, other: FieldElement) -> Self
[src]
impl<'_> Mul<&'_ FieldElement> for G2
[src]
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, other: &FieldElement) -> Self
[src]
impl<'_> Mul<FieldElement> for &'_ G2
[src]
type Output = G2
The resulting type after applying the *
operator.
fn mul(self, other: FieldElement) -> G2
[src]
impl<'_, '_> Mul<&'_ FieldElement> for &'_ G2
[src]
type Output = G2
The resulting type after applying the *
operator.
fn mul(self, other: &FieldElement) -> G2
[src]
impl Mul<G2> for FieldElement
[src]
type Output = G2
The resulting type after applying the *
operator.
fn mul(self, other: G2) -> G2
[src]
impl<'_> Mul<&'_ G2> for FieldElement
[src]
type Output = G2
The resulting type after applying the *
operator.
fn mul(self, other: &G2) -> G2
[src]
impl<'_> Mul<G2> for &'_ FieldElement
[src]
type Output = G2
The resulting type after applying the *
operator.
fn mul(self, other: G2) -> G2
[src]
impl<'_, '_> Mul<&'_ G2> for &'_ FieldElement
[src]
type Output = G2
The resulting type after applying the *
operator.
fn mul(self, other: &G2) -> G2
[src]
impl Neg for G2
[src]
type Output = Self
The resulting type after applying the -
operator.
fn neg(self) -> Self::Output
[src]
impl<'_> Neg for &'_ G2
[src]
impl AddAssign<G2> for G2
[src]
fn add_assign(&mut self, other: Self)
[src]
impl<'a> AddAssign<&'a G2> for G2
[src]
fn add_assign(&mut self, other: &'a G2)
[src]
impl Debug for G2
[src]
impl Display for G2
[src]
impl Serialize for G2
[src]
impl<'a> Deserialize<'a> for G2
[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'a>,
[src]
D: Deserializer<'a>,
impl Zeroize for G2
[src]
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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> From<T> for T
[src]
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<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<Z> Zeroize for Z where
Z: DefaultIsZeroes,
[src]
Z: DefaultIsZeroes,