pub struct PrecomputedTables<const WINDOW_SIZE: usize>;Expand description
Backend based on precomputed tables.
Trait Implementations§
Source§impl<const WINDOW_SIZE: usize> Clone for PrecomputedTables<WINDOW_SIZE>
impl<const WINDOW_SIZE: usize> Clone for PrecomputedTables<WINDOW_SIZE>
Source§fn clone(&self) -> PrecomputedTables<WINDOW_SIZE>
fn clone(&self) -> PrecomputedTables<WINDOW_SIZE>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<const WINDOW_SIZE: usize> Copy for PrecomputedTables<WINDOW_SIZE>
Source§impl<const WINDOW_SIZE: usize> Debug for PrecomputedTables<WINDOW_SIZE>
impl<const WINDOW_SIZE: usize> Debug for PrecomputedTables<WINDOW_SIZE>
Source§impl<C, const WINDOW_SIZE: usize> MulBackend<C> for PrecomputedTables<WINDOW_SIZE>where
C: PrimeCurveParams + PrimeCurveWithBasepointTable<WINDOW_SIZE>,
Available on crate feature basepoint-table only.
impl<C, const WINDOW_SIZE: usize> MulBackend<C> for PrecomputedTables<WINDOW_SIZE>where
C: PrimeCurveParams + PrimeCurveWithBasepointTable<WINDOW_SIZE>,
Available on crate feature
basepoint-table only.Source§fn mul_by_generator(k: &Scalar<C>) -> ProjectivePoint<C>
fn mul_by_generator(k: &Scalar<C>) -> ProjectivePoint<C>
Multiplication by the generator. Read more
Source§fn mul_by_generator_vartime(k: &Scalar<C>) -> ProjectivePoint<C>
fn mul_by_generator_vartime(k: &Scalar<C>) -> ProjectivePoint<C>
Variable-time multiplication by the generator. Read more
Source§fn mul_by_generator_and_mul_add_vartime(
a: &Scalar<C>,
b_scalar: &Scalar<C>,
b_point: &ProjectivePoint<C>,
) -> ProjectivePoint<C>
fn mul_by_generator_and_mul_add_vartime( a: &Scalar<C>, b_scalar: &Scalar<C>, b_point: &ProjectivePoint<C>, ) -> ProjectivePoint<C>
Multiply
a by the generator of the prime-order subgroup, adding the result to the point
P multiplied by the scalar b, i.e. compute aG + bP.Auto Trait Implementations§
impl<const WINDOW_SIZE: usize> Freeze for PrecomputedTables<WINDOW_SIZE>
impl<const WINDOW_SIZE: usize> RefUnwindSafe for PrecomputedTables<WINDOW_SIZE>
impl<const WINDOW_SIZE: usize> Send for PrecomputedTables<WINDOW_SIZE>
impl<const WINDOW_SIZE: usize> Sync for PrecomputedTables<WINDOW_SIZE>
impl<const WINDOW_SIZE: usize> Unpin for PrecomputedTables<WINDOW_SIZE>
impl<const WINDOW_SIZE: usize> UnsafeUnpin for PrecomputedTables<WINDOW_SIZE>
impl<const WINDOW_SIZE: usize> UnwindSafe for PrecomputedTables<WINDOW_SIZE>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more