From 6f9c229e6574943e3002775d8ad4fedfc86d641d Mon Sep 17 00:00:00 2001 From: Henry de Valence Date: Thu, 22 Mar 2018 12:06:48 -0700 Subject: [PATCH] Remove Elligator stubs for now, since this isn't the API we want anyways --- src/edwards.rs | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/src/edwards.rs b/src/edwards.rs index dd979ba..33d299f 100644 --- a/src/edwards.rs +++ b/src/edwards.rs @@ -824,31 +824,6 @@ impl EdwardsPoint { } } -// ------------------------------------------------------------------------ -// Elligator2 (uniform encoding/decoding of curve points) -// ------------------------------------------------------------------------ - -// XXX should this be in another module, with types and `From` impls, like `CompressedEdwardsY`? - -impl EdwardsPoint { - /// Use Elligator2 to try to convert `self` to a uniformly random - /// string. - /// - /// Returns `Some<[u8;32]>` if `self` is in the image of the - /// Elligator2 map. For a random point on the curve, this happens - /// with probability 1/2. Otherwise, returns `None`. - fn to_uniform_representative(&self) -> Option<[u8; 32]> { - unimplemented!(); - } - - /// Use Elligator2 to convert a uniformly random string to a curve - /// point. - #[allow(unused_variables)] // REMOVE WHEN IMPLEMENTED - fn from_uniform_representative(bytes: &[u8; 32]) -> EdwardsPoint { - unimplemented!(); - } -} - // ------------------------------------------------------------------------ // Debug traits // ------------------------------------------------------------------------