PublicKey now derives Copy, Clone, Debug

This commit is contained in:
Michael Rosenberg 2019-02-27 12:40:14 -05:00
parent 34676d3360
commit 2a58e35b23
No known key found for this signature in database
GPG key ID: 65957070579A8C49

View file

@ -25,6 +25,7 @@ use rand_core::CryptoRng;
/// A `PublicKey` is the corresponding public key converted from
/// an `EphemeralSecret` or a `StaticSecret` key.
#[derive(Copy, Clone, Debug)]
pub struct PublicKey(pub (crate) MontgomeryPoint);
impl From<[u8; 32]> for PublicKey {