Skip to content

Commit

Permalink
Permit keying HashMap and BTreeMap off CompressedRistretto
Browse files Browse the repository at this point in the history
  • Loading branch information
burdges committed Dec 26, 2018
1 parent 677d542 commit 3e91ba0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ristretto.rs
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ use traits::{MultiscalarMul, VartimeMultiscalarMul};
///
/// The Ristretto encoding is canonical, so two points are equal if and
/// only if their encodings are equal.
#[derive(Copy, Clone, Eq, PartialEq)]
#[derive(Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Hash)]
pub struct CompressedRistretto(pub [u8; 32]);

impl CompressedRistretto {
Expand Down

0 comments on commit 3e91ba0

Please sign in to comment.