feat: Derive Hash
in PublicKey
and Signature
Signed-off-by: Awiteb <a@4rs.nl>
This commit is contained in:
parent
e15c693421
commit
f4b2514e75
1 changed files with 2 additions and 2 deletions
|
@ -37,7 +37,7 @@ use crate::cipher::CipherError;
|
|||
const CORRECT_LENGTH: &str = "The length is correct";
|
||||
|
||||
/// K256 public key
|
||||
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
|
||||
#[derive(Clone, Copy, Debug, Eq, PartialEq, Hash)]
|
||||
pub struct PublicKey([u8; 33]);
|
||||
|
||||
/// K256 private key
|
||||
|
@ -45,7 +45,7 @@ pub struct PublicKey([u8; 33]);
|
|||
pub struct PrivateKey([u8; 32]);
|
||||
|
||||
/// OTMP signature
|
||||
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
|
||||
#[derive(Clone, Copy, Debug, Eq, PartialEq, Hash)]
|
||||
pub struct Signature {
|
||||
hmac_output: [u8; 32],
|
||||
timestamp: [u8; 8],
|
||||
|
|
Loading…
Reference in a new issue