Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
gruve-p committed Jul 24, 2023
2 parents 5906e56 + f50bb05 commit 5ac1848
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions groestlcoin/src/crypto/key.rs
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,10 @@ impl PublicKey {
}
}

impl From<secp256k1::PublicKey> for PublicKey {
fn from(pk: secp256k1::PublicKey) -> PublicKey { PublicKey::new(pk) }
}

impl From<PublicKey> for XOnlyPublicKey {
fn from(pk: PublicKey) -> XOnlyPublicKey { pk.inner.into() }
}
Expand Down

0 comments on commit 5ac1848

Please sign in to comment.