From 3f3dfd404c89b2b9a9d5ea0a9aa0d022994c602e Mon Sep 17 00:00:00 2001 From: Jedrzej Stuczynski Date: Wed, 26 Feb 2020 17:05:36 +0000 Subject: [PATCH] Removed derivation of copy on private keys --- common/crypto/src/encryption/mod.rs | 3 +-- common/crypto/src/identity/mod.rs | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/common/crypto/src/encryption/mod.rs b/common/crypto/src/encryption/mod.rs index 78edbd5c47..03ad7de8d1 100644 --- a/common/crypto/src/encryption/mod.rs +++ b/common/crypto/src/encryption/mod.rs @@ -62,8 +62,7 @@ impl PemStorableKeyPair for KeyPair { } } -// COPY IS DERIVED ONLY TEMPORARILY UNTIL https://github.com/nymtech/nym/issues/47 is fixed -#[derive(Debug, Clone, Copy, Eq, PartialEq)] +#[derive(Debug, Clone, Eq, PartialEq)] pub struct PrivateKey(pub Scalar); impl PrivateKey { diff --git a/common/crypto/src/identity/mod.rs b/common/crypto/src/identity/mod.rs index 941f786f67..8f627e14aa 100644 --- a/common/crypto/src/identity/mod.rs +++ b/common/crypto/src/identity/mod.rs @@ -98,8 +98,7 @@ impl PemStorableKey for MixIdentityPublicKey { } } -// COPY IS DERIVED ONLY TEMPORARILY UNTIL https://github.com/nymtech/nym/issues/47 is fixed -#[derive(Debug, Clone, Copy, Eq, PartialEq)] +#[derive(Debug, Clone, Eq, PartialEq)] pub struct MixIdentityPrivateKey(pub encryption::PrivateKey); impl<'a> From<&'a MixIdentityPrivateKey> for MixIdentityPublicKey {