diff --git a/src/crypto/nullifier.rs b/src/crypto/nullifier.rs index 58459360f..4cb62bc3c 100644 --- a/src/crypto/nullifier.rs +++ b/src/crypto/nullifier.rs @@ -5,6 +5,8 @@ use crate::{ serial::{Decodable, Encodable}, }; + +#[derive(Debug, Clone)] pub struct Nullifier { pub repr: [u8; 32], } @@ -28,3 +30,9 @@ impl Decodable for Nullifier { }) } } + +impl PartialEq for Nullifier { + fn eq(&self, other: &Self) -> bool { + self.repr == other.repr + } +}