Skip to content

Commit

Permalink
tendermint: SigningKey is From<ed25519_consensus::SigningKey>
Browse files Browse the repository at this point in the history
  • Loading branch information
cratelyn committed Mar 18, 2024
1 parent 35110f8 commit 4f1a95a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tendermint/src/crypto/ed25519/signing_key.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,10 @@ impl TryFrom<SigningKey> for ed25519_consensus::SigningKey {
Ok(ed25519_consensus::SigningKey::from(src.0))
}
}

#[cfg(feature = "rust-crypto")]
impl From<ed25519_consensus::SigningKey> for SigningKey {
fn from(sk: ed25519_consensus::SigningKey) -> Self {
Self::new(sk.to_bytes())
}
}

0 comments on commit 4f1a95a

Please sign in to comment.