diff --git a/src/lib.rs b/src/lib.rs index 02b80c5..16c7ebc 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -88,6 +88,7 @@ type Result = std::result::Result; /// The main interface used for reading and writing _nkey-encoded_ key pairs, including /// seeds and public keys. Instances of this type cannot be cloned. +#[derive(Clone)] pub struct KeyPair { kp_type: KeyPairType, sk: Option, //rawkey_kind: RawKeyKind, diff --git a/src/xkeys.rs b/src/xkeys.rs index 8c9b370..8cfd874 100644 --- a/src/xkeys.rs +++ b/src/xkeys.rs @@ -18,6 +18,7 @@ use rand::{CryptoRng, Rng, RngCore}; /// The main interface used for reading and writing _nkey-encoded_ curve key /// pairs. Instances of this type cannot be cloned. +#[derive(Clone)] pub struct XKey { public: PublicKey, secret: Option,