Trait curve25519_dalek::traits::BasepointTable
source · pub trait BasepointTable {
type Point;
fn create(basepoint: &Self::Point) -> Self;
fn basepoint(&self) -> Self::Point;
fn basepoint_mul(&self, scalar: &Scalar) -> Self::Point;
}
Expand description
A precomputed table of basepoints, for optimising scalar multiplications.
Required Associated Types§
Required Methods§
sourcefn create(basepoint: &Self::Point) -> Self
fn create(basepoint: &Self::Point) -> Self
Generate a new precomputed basepoint table from the given basepoint.
sourcefn basepoint_mul(&self, scalar: &Scalar) -> Self::Point
fn basepoint_mul(&self, scalar: &Scalar) -> Self::Point
Multiply a scalar
by this precomputed basepoint table, in constant time.