Skip to content

Commit

Permalink
Implement hash for PublicKey. (#309)
Browse files Browse the repository at this point in the history
  • Loading branch information
kurnevsky authored May 20, 2021
1 parent 7d690bd commit c04b7ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crypto_box/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ impl Drop for SecretKey {
}

/// `crypto_box` public key
#[derive(Clone, Debug, Eq, PartialEq)]
#[derive(Clone, Debug, Eq, PartialEq, Hash)]
pub struct PublicKey([u8; KEY_SIZE]);

impl PublicKey {
Expand Down

0 comments on commit c04b7ac

Please sign in to comment.