From d57fb6caebb03bb37da9980be689430969027009 Mon Sep 17 00:00:00 2001 From: Rui Morais Date: Tue, 25 Feb 2020 18:16:06 +0000 Subject: [PATCH] Derive of Hash trait to CompressedRistretto --- src/ristretto.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ristretto.rs b/src/ristretto.rs index c4b6170..977f52f 100644 --- a/src/ristretto.rs +++ b/src/ristretto.rs @@ -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 {