From b5e664ab16a4f8bf1da518efc34c18c32f575af7 Mon Sep 17 00:00:00 2001 From: Isis Lovecruft Date: Fri, 2 Feb 2018 02:25:52 +0000 Subject: [PATCH] Add RISTRETTO_BASEPOINT_COMPRESSED constant. --- src/constants.rs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/constants.rs b/src/constants.rs index 1c80dff..0da5bb1 100644 --- a/src/constants.rs +++ b/src/constants.rs @@ -28,9 +28,9 @@ #![allow(non_snake_case)] use edwards::CompressedEdwardsY; -use ristretto::RistrettoPoint; - use montgomery::CompressedMontgomeryU; +use ristretto::RistrettoPoint; +use ristretto::CompressedRistretto; use scalar::Scalar; #[cfg(feature="radix_51")] @@ -57,6 +57,12 @@ pub const X25519_BASEPOINT_COMPRESSED: CompressedMontgomeryU = 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00]); +/// The Ristretto basepoint, in `CompressedRistretto` format. +pub const RISTRETTO_BASEPOINT_COMPRESSED: CompressedRistretto = + CompressedRistretto([0xe2, 0xf2, 0xae, 0x0a, 0x6a, 0xbc, 0x4e, 0x71, + 0xa8, 0x84, 0xa9, 0x61, 0xc5, 0x00, 0x51, 0x5f, + 0x58, 0xe3, 0x0b, 0x6a, 0xa5, 0x82, 0xdd, 0x8d, + 0xb6, 0xa6, 0x59, 0x45, 0xe0, 0x8d, 0x2d, 0x76]); /// The Ristretto basepoint, as a `RistrettoPoint`. ///