chore: Imple Clone for K256Secret

Signed-off-by: Awiteb <a@4rs.nl>
This commit is contained in:
Awiteb 2024-07-23 22:21:24 +03:00
parent bd45d6e1a9
commit 470fd6c015
Signed by: awiteb
GPG key ID: 3F6B55640AA6682F

View file

@ -72,6 +72,7 @@ type HmacSha256 = hmac::Hmac<sha2::Sha256>;
/// An wrapper around the k256 crate to provide a simple API for ecdh key
/// exchange and keypair generation.
#[derive(Clone)]
pub struct K256Secret {
/// The private key scalar
scalar: NonZeroScalar,