pub struct PrecomputedTables<const WINDOW_SIZE: usize>;Expand description
Backend based on precomputed tables.
Trait Implementations§
Source§impl<C, const WINDOW_SIZE: usize> MulBackend<C> for PrecomputedTables<WINDOW_SIZE>where
C: PrimeCurveParams + PrimeCurveWithBasepointTable<WINDOW_SIZE>,
impl<C, const WINDOW_SIZE: usize> MulBackend<C> for PrecomputedTables<WINDOW_SIZE>where
C: PrimeCurveParams + PrimeCurveWithBasepointTable<WINDOW_SIZE>,
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