From 8c1a111f136c743e83e4092b9ebf8dd8f6f0ad13 Mon Sep 17 00:00:00 2001 From: c0gent Date: Tue, 17 Jul 2018 15:32:24 -0700 Subject: [PATCH] Add `Copy` to `PublicKey` derived impls. --- src/crypto/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/crypto/mod.rs b/src/crypto/mod.rs index 673dfe2..6abe863 100644 --- a/src/crypto/mod.rs +++ b/src/crypto/mod.rs @@ -29,7 +29,7 @@ const CHACHA_RNG_SEED_SIZE: usize = 8; const ERR_OS_RNG: &str = "could not initialize the OS random number generator"; /// A public key, or a public key share. -#[derive(Deserialize, Serialize, Clone, PartialEq, Eq)] +#[derive(Deserialize, Serialize, Copy, Clone, PartialEq, Eq)] pub struct PublicKey(#[serde(with = "serde_impl::projective")] G1); impl Hash for PublicKey {