diff --git a/groestlcoin/src/crypto/key.rs b/groestlcoin/src/crypto/key.rs index 9ff46dae15..53f796e1f1 100644 --- a/groestlcoin/src/crypto/key.rs +++ b/groestlcoin/src/crypto/key.rs @@ -264,6 +264,10 @@ impl PublicKey { } } +impl From for PublicKey { + fn from(pk: secp256k1::PublicKey) -> PublicKey { PublicKey::new(pk) } +} + impl From for XOnlyPublicKey { fn from(pk: PublicKey) -> XOnlyPublicKey { pk.inner.into() } }