From 470fd6c0157d4bd80ee486ed4d67dc10e208b2df Mon Sep 17 00:00:00 2001 From: Awiteb Date: Tue, 23 Jul 2024 22:21:24 +0300 Subject: [PATCH] chore: Imple `Clone` for `K256Secret` Signed-off-by: Awiteb --- crates/oxidetalis_core/src/cipher.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/oxidetalis_core/src/cipher.rs b/crates/oxidetalis_core/src/cipher.rs index 1ccbdf5..9518ab4 100644 --- a/crates/oxidetalis_core/src/cipher.rs +++ b/crates/oxidetalis_core/src/cipher.rs @@ -72,6 +72,7 @@ type HmacSha256 = hmac::Hmac; /// 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,