feat: derive Hash for RsaPublicKey

This commit is contained in:
Luca Cominardi 2021-09-30 14:26:22 +02:00 committed by GitHub
parent d4376e089f
commit fd1961dfe2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -39,7 +39,7 @@ pub trait PublicKeyParts {
pub trait PrivateKey: DecryptionPrimitive + PublicKeyParts {}
/// Represents the public part of an RSA key.
#[derive(Debug, Clone, PartialEq, Eq)]
#[derive(Debug, Clone, Hash, PartialEq, Eq)]
#[cfg_attr(
feature = "serde",
derive(Serialize, Deserialize),