diff --git a/Cargo.toml b/Cargo.toml index 7b901d7..ba96515 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -51,6 +51,7 @@ nightly = ["radix_51", "subtle/nightly"] default = ["std"] std = ["rand", "subtle/std"] alloc = [] +# This isn't used at the moment, but keep it around for future yolocrypto features. yolocrypto = [] bench = [] # Radix-51 arithmetic using u128 diff --git a/src/constants.rs b/src/constants.rs index d45b9ae..09880dd 100644 --- a/src/constants.rs +++ b/src/constants.rs @@ -19,7 +19,6 @@ #![allow(non_snake_case)] use edwards::CompressedEdwardsY; -#[cfg(feature = "yolocrypto")] use ristretto::{RistrettoPoint, RistrettoBasepointTable}; use montgomery::CompressedMontgomeryU; use scalar::Scalar; @@ -63,7 +62,6 @@ pub const BASE_COMPRESSED_MONTGOMERY: CompressedMontgomeryU = /// The Ed25519 basepoint, as a `RistrettoPoint`. This is called `_POINT` to distinguish it from /// `_TABLE`, which provides fast scalar multiplication. -#[cfg(feature = "yolocrypto")] pub const RISTRETTO_BASEPOINT_POINT: RistrettoPoint = RistrettoPoint(ED25519_BASEPOINT_POINT); /// `l` is the order of base point, i.e. 2^252 + @@ -87,7 +85,6 @@ pub const l_minus_2: Scalar = Scalar([ 0xeb, 0xd3, 0xf5, 0x5c, 0x1a, 0x63, 0x12, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10 ]); -#[cfg(feature = "yolocrypto")] /// The Ed25519 basepoint, as a RistrettoPoint pub const RISTRETTO_BASEPOINT_TABLE: RistrettoBasepointTable = RistrettoBasepointTable(ED25519_BASEPOINT_TABLE); diff --git a/src/lib.rs b/src/lib.rs index 64583db..3e18477 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -74,8 +74,6 @@ pub mod scalar; pub mod edwards; pub mod montgomery; -// Feature gate decaf while our implementation is unfinished and probably incorrect. -#[cfg(feature = "yolocrypto")] pub mod ristretto; // Other miscelaneous utilities. diff --git a/src/ristretto.rs b/src/ristretto.rs index c0d2d8b..38470c8 100644 --- a/src/ristretto.rs +++ b/src/ristretto.rs @@ -15,8 +15,7 @@ //! scheme](https://eprint.iacr.org/2015/673.pdf) to work on top of the //! Curve25519 group. //! -//! Note: this code is currently feature-gated with the `yolocrypto` -//! feature flag, because our implementation is still unfinished. +//! Below are some notes on Ristretto, which are *NOT* a full writeup and which may have errors. //! //! # Notes on Ristretto //!