Skip to content

Commit

Permalink
Derive of Hash trait to CompressedRistretto
Browse files Browse the repository at this point in the history
  • Loading branch information
Fiono11 committed Feb 25, 2020
1 parent 805cdbf commit d57fb6c
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 @@ -208,7 +208,7 @@ use backend::vector::scalar_mul;
///
/// 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, Hash)]
pub struct CompressedRistretto(pub [u8; 32]);

impl ConstantTimeEq for CompressedRistretto {
Expand Down

0 comments on commit d57fb6c

Please sign in to comment.