Struct curve25519_dalek::ristretto::RistrettoBasepointTable[][src]

pub struct RistrettoBasepointTable(_);

A precomputed table of multiples of a basepoint, used to accelerate scalar multiplication.

A precomputed table of multiples of the Ristretto basepoint is available in the constants module:

use curve25519_dalek::constants;
use curve25519_dalek::scalar::Scalar;

let a = Scalar::from(87329482u64);
let P = &a * &constants::RISTRETTO_BASEPOINT_TABLE;

Methods

impl RistrettoBasepointTable
[src]

Create a precomputed table of multiples of the given basepoint.

Get the basepoint for this table as a RistrettoPoint.

Trait Implementations

impl Clone for RistrettoBasepointTable
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<'a, 'b> Mul<&'b Scalar> for &'a RistrettoBasepointTable
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl<'a, 'b> Mul<&'a RistrettoBasepointTable> for &'b Scalar
[src]

The resulting type after applying the * operator.

Performs the * operation.

Auto Trait Implementations