Skip to content

Commit

Permalink
Remove Elligator stubs for now, since this isn't the API we want anyways
Browse files Browse the repository at this point in the history
  • Loading branch information
hdevalence committed Mar 22, 2018
1 parent f2e4489 commit 6f9c229
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions src/edwards.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
// ------------------------------------------------------------------------
Expand Down

0 comments on commit 6f9c229

Please sign in to comment.