Skip to content

Commit

Permalink
Derive Hash for Recipient.
Browse files Browse the repository at this point in the history
  • Loading branch information
gibbz00 committed Jan 1, 2024
1 parent 1a12320 commit 33b6611
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion age/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion age/src/x25519.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 33b6611

Please sign in to comment.