feat: Derive Eq and PartialEq to Signature

Signed-off-by: Awiteb <a@4rs.nl>
This commit is contained in:
Awiteb 2024-07-02 18:18:41 +03:00
parent 39337f8d90
commit f47bc82b19
Signed by: awiteb
GPG key ID: 3F6B55640AA6682F

View file

@ -45,7 +45,7 @@ pub struct PublicKey([u8; 33]);
pub struct PrivateKey([u8; 32]); pub struct PrivateKey([u8; 32]);
/// OTMP signature /// OTMP signature
#[derive(Clone, Copy, Debug)] #[derive(Clone, Copy, Debug, Eq, PartialEq)]
pub struct Signature { pub struct Signature {
hmac_output: [u8; 32], hmac_output: [u8; 32],
timestamp: [u8; 8], timestamp: [u8; 8],