Skip to content

Commit

Permalink
Derive Clone for tendermint::PrivateKey
Browse files Browse the repository at this point in the history
  • Loading branch information
zbuc committed Jan 13, 2022
1 parent f01db66 commit 2d51826
Showing 1 changed file with 1 addition and 1 deletion.
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 2d51826

Please sign in to comment.