[−][src]Struct amcl_wrapper_ml::group_elem_g1::G1
Methods
impl G1
[src]
pub fn binary_scalar_mul(
&self,
h: &Self,
a: &FieldElement,
b: &FieldElement
) -> Self
[src]
&self,
h: &Self,
a: &FieldElement,
b: &FieldElement
) -> Self
Computes sum of 2 scalar multiplications. Faster than doing the scalar multiplications individually and then adding them. Uses lookup table returns selfa + hb
impl G1
[src]
pub fn to_ecp(&self) -> GroupG1
[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<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.
fn add(self, other: &'a G1) -> Self
[src]
impl<'a, '_> Add<&'a G1> for &'_ G1
[src]
type Output = G1
The resulting type after applying the +
operator.
fn add(self, other: &'a G1) -> G1
[src]
impl Add<G1> for G1
[src]
type Output = Self
The resulting type after applying the +
operator.
fn add(self, other: Self) -> Self
[src]
impl<'_> Add<G1> for &'_ G1
[src]
type Output = G1
The resulting type after applying the +
operator.
fn add(self, other: G1) -> G1
[src]
impl<'a> AddAssign<&'a G1> for G1
[src]
fn add_assign(&mut self, other: &'a G1)
[src]
impl AddAssign<G1> for G1
[src]
fn add_assign(&mut self, other: Self)
[src]
impl Clone for G1
[src]
impl Debug for G1
[src]
impl Default for G1
[src]
impl<'a> Deserialize<'a> for G1
[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'a>,
[src]
D: Deserializer<'a>,
impl Display for G1
[src]
impl Drop for G1
[src]
impl Eq 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<ECP> for G1
[src]
impl GroupElement for G1
[src]
fn new() -> Self
[src]
fn identity() -> Self
[src]
fn generator() -> Self
[src]
This is an arbitrary choice. Any group element can be a generator
fn is_identity(&self) -> bool
[src]
fn set_to_identity(&mut self)
[src]
fn from_msg_hash(msg: &[u8]) -> Self
[src]
fn hash_to_curve(msg: &[u8], dst: &DomainSeparationTag) -> Self
[src]
fn to_bytes(&self) -> Vec<u8>
[src]
fn from_bytes(bytes: &[u8]) -> Result<Self, SerzDeserzError>
[src]
fn write_to_slice(&self, target: &mut [u8]) -> Result<(), SerzDeserzError>
[src]
fn write_to_slice_unchecked(&self, target: &mut [u8])
[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<G1> for G1Vector
[src]
fn new(size: usize) -> Self
[src]
fn with_capacity(capacity: usize) -> Self
[src]
fn as_slice(&self) -> &[G1]
[src]
fn as_mut_slice(&mut self) -> &mut [G1]
[src]
fn len(&self) -> usize
[src]
fn push(&mut self, value: G1)
[src]
fn append(&mut self, other: &mut Self)
[src]
fn pop(&mut self) -> Option<G1>
[src]
fn insert(&mut self, index: usize, element: G1)
[src]
fn remove(&mut self, index: usize) -> G1
[src]
fn sum(&self) -> G1
[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<G1>
[src]
fn random(size: usize) -> Self
[src]
impl Hash for G1
[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<'_> Mul<&'_ FieldElement> for G1
[src]
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, other: &FieldElement) -> Self
[src]
impl<'_, '_> Mul<&'_ FieldElement> for &'_ G1
[src]
type Output = G1
The resulting type after applying the *
operator.
fn mul(self, other: &FieldElement) -> G1
[src]
impl<'_> Mul<&'_ G1> for FieldElement
[src]
type Output = G1
The resulting type after applying the *
operator.
fn mul(self, other: &G1) -> G1
[src]
impl<'_, '_> Mul<&'_ G1> for &'_ FieldElement
[src]
type Output = G1
The resulting type after applying the *
operator.
fn mul(self, other: &G1) -> G1
[src]
impl Mul<FieldElement> for G1
[src]
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, other: FieldElement) -> Self
[src]
impl<'_> Mul<FieldElement> for &'_ G1
[src]
type Output = G1
The resulting type after applying the *
operator.
fn mul(self, other: FieldElement) -> G1
[src]
impl Mul<G1> for FieldElement
[src]
type Output = G1
The resulting type after applying the *
operator.
fn mul(self, other: G1) -> G1
[src]
impl<'_> Mul<G1> for &'_ FieldElement
[src]
type Output = G1
The resulting type after applying the *
operator.
fn mul(self, other: G1) -> G1
[src]
impl Neg for G1
[src]
type Output = Self
The resulting type after applying the -
operator.
fn neg(self) -> Self::Output
[src]
impl<'_> Neg for &'_ G1
[src]
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.
fn sub(self, other: &'a G1) -> Self
[src]
impl<'a, '_> Sub<&'a G1> for &'_ G1
[src]
type Output = G1
The resulting type after applying the -
operator.
fn sub(self, other: &'a G1) -> G1
[src]
impl Sub<G1> for G1
[src]
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, other: Self) -> Self
[src]
impl<'_> Sub<G1> for &'_ G1
[src]
type Output = G1
The resulting type after applying the -
operator.
fn sub(self, other: G1) -> G1
[src]
impl<'a> SubAssign<&'a G1> for G1
[src]
fn sub_assign(&mut self, other: &'a G1)
[src]
impl SubAssign<G1> for G1
[src]
fn sub_assign(&mut self, other: Self)
[src]
impl Zeroize for G1
[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: Deserialize<'de>,
[src]
T: 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,