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.
Associated Types
Required methods
Generate a new precomputed basepoint table from the given basepoint.
fn 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.