[−][src]Module curve25519_dalek::constants
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_ORDER |
|
ED25519_BASEPOINT_POINT | The Ed25519 basepoint, as an |
ED25519_BASEPOINT_COMPRESSED | The Ed25519 basepoint, in |
ED25519_BASEPOINT_TABLE | Table containing precomputed multiples of the Ed25519 basepoint \(B = (x, 4/5)\). |
EIGHT_TORSION | The 8-torsion subgroup \(\mathcal E [8]\). |
RISTRETTO_BASEPOINT_COMPRESSED | The Ristretto basepoint, in |
RISTRETTO_BASEPOINT_POINT | The Ristretto basepoint, as a |
RISTRETTO_BASEPOINT_TABLE | The Ristretto basepoint, as a |
X25519_BASEPOINT | The X25519 basepoint, in |