From 30e403e5062035098731e4f3d9b044ef873461c2 Mon Sep 17 00:00:00 2001 From: Thane Thomson Date: Thu, 13 Jan 2022 22:00:10 -0500 Subject: [PATCH 1/2] Implement Clone for tendermint::PrivateKey Signed-off-by: Thane Thomson --- tendermint/src/private_key.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tendermint/src/private_key.rs b/tendermint/src/private_key.rs index 0c0989f54..893dfaa87 100644 --- a/tendermint/src/private_key.rs +++ b/tendermint/src/private_key.rs @@ -12,7 +12,7 @@ use zeroize::Zeroizing; pub const ED25519_KEYPAIR_SIZE: usize = 64; /// Private keys as parsed from configuration files -#[derive(Serialize, Deserialize)] +#[derive(Serialize, Deserialize, Clone)] #[non_exhaustive] #[serde(tag = "type", content = "value")] // JSON custom serialization for priv_validator_key.json pub enum PrivateKey { From ad853fcfcf2467d58ef7655c7028d83add7642aa Mon Sep 17 00:00:00 2001 From: Thane Thomson Date: Thu, 13 Jan 2022 22:08:26 -0500 Subject: [PATCH 2/2] Add changelog entry Signed-off-by: Thane Thomson --- .changelog/unreleased/improvements/1077-private-key-clone.md | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 .changelog/unreleased/improvements/1077-private-key-clone.md diff --git a/.changelog/unreleased/improvements/1077-private-key-clone.md b/.changelog/unreleased/improvements/1077-private-key-clone.md new file mode 100644 index 000000000..234d4ffb3 --- /dev/null +++ b/.changelog/unreleased/improvements/1077-private-key-clone.md @@ -0,0 +1,2 @@ +- `[tendermint]` Implement `Clone` for `PrivateKey` + ([#1077](https://github.com/informalsystems/tendermint-rs/issues/1077)) \ No newline at end of file