Skip to content

Commit

Permalink
tendermint: Derive Clone for tendermint::PrivateKey (#1082)
Browse files Browse the repository at this point in the history
* Implement Clone for tendermint::PrivateKey

Signed-off-by: Thane Thomson <connect@thanethomson.com>

* Add changelog entry

Signed-off-by: Thane Thomson <connect@thanethomson.com>
  • Loading branch information
thanethomson authored Jan 14, 2022
1 parent a8c2f7b commit 23a8950
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .changelog/unreleased/improvements/1077-private-key-clone.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- `[tendermint]` Implement `Clone` for `PrivateKey`
([#1077](https://github.com/informalsystems/tendermint-rs/issues/1077))
2 changes: 1 addition & 1 deletion tendermint/src/private_key.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 23a8950

Please sign in to comment.