diff --git a/age/CHANGELOG.md b/age/CHANGELOG.md index 5917a17a..f74fe6d4 100644 --- a/age/CHANGELOG.md +++ b/age/CHANGELOG.md @@ -11,7 +11,7 @@ to 1.0.0 are beta releases. ## [Unreleased] ### Added - `impl Eq for age::ssh::{ParseRecipientKeyError, UnsupportedKey}` -- `impl {Debug, PartialEq, Eq} for age::x25519::Recipient` +- `impl {Debug, PartialEq, Eq, Hash} for age::x25519::Recipient` ### Changed - MSRV is now 1.65.0. diff --git a/age/src/x25519.rs b/age/src/x25519.rs index fe96a7af..6fa591c9 100644 --- a/age/src/x25519.rs +++ b/age/src/x25519.rs @@ -146,7 +146,7 @@ impl crate::Identity for Identity { /// /// This recipient type is anonymous, in the sense that an attacker can't tell from the /// age-encrypted file alone if it is encrypted to a certain recipient. -#[derive(Clone, PartialEq, Eq)] +#[derive(Clone, PartialEq, Eq, Hash)] pub struct Recipient(PublicKey); impl std::str::FromStr for Recipient {