mirror of
https://github.com/darkrenaissance/darkfi.git
synced 2026-04-28 03:00:18 -04:00
crypto: impl PartialEq and Clone for Nullifier
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user