Merge branch 'develop' into ed25519

This commit is contained in:
egor-duda
2022-05-19 22:58:02 +03:00
committed by GitHub
3 changed files with 5 additions and 3 deletions

View File

@@ -97,7 +97,9 @@ pub fn aes256_cbc_decrypt(
}
/// An asymmetric private key that can sign messages.
#[derive(Clone, Debug, PartialEq, Eq)]
#[derive(Clone, Debug)]
// We shouldn't compare private keys in prod without constant-time operations.
#[cfg_attr(test, derive(PartialEq, Eq))]
pub enum PrivateKey {
Ecdsa(ecdsa::SecKey),
#[cfg(feature = "ed25519")]