Merge pull request #144 from c0gent/c0gent-publickey-copy

Add `Copy` to `PublicKey` derived impls.
This commit is contained in:
Nick Sanders 2018-07-17 16:00:23 -07:00 committed by GitHub
commit f1c712c5ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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 {