Module curve25519_dalek::constants
source · Expand description
Various constants, such as the Ristretto and Ed25519 basepoints.
Most of the constants are given with
LONG_DESCRIPTIVE_UPPER_CASE_NAMES, but they can be brought into
scope using a let binding:
use curve25519_dalek::constants;
use curve25519_dalek::traits::IsIdentity;
let B = &constants::RISTRETTO_BASEPOINT_TABLE;
let l = &constants::BASEPOINT_ORDER;
let A = l * B;
assert!(A.is_identity());Constants
BASEPOINT_ORDERis the order of the Ristretto group and of the Ed25519 basepoint, i.e., $$ \ell = 2^{252} + 27742317777372353535851937790883648493. $$- The Ed25519 basepoint, in
CompressedEdwardsYformat. - The Ed25519 basepoint, as an
EdwardsPoint. - Table containing precomputed multiples of the Ed25519 basepoint \(B = (x, 4/5)\).
- The 8-torsion subgroup \(\mathcal E [8]\).
- The Ristretto basepoint, in
CompressedRistrettoformat. - The Ristretto basepoint, as a
RistrettoPoint. - The Ristretto basepoint, as a
RistrettoBasepointTablefor scalar multiplication. - The X25519 basepoint, in
MontgomeryPointformat.