We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 110aa8e commit 0c131fbCopy full SHA for 0c131fb
src/lib.rs
@@ -239,6 +239,16 @@ impl ToPublicKey for bitcoin::PublicKey {
239
}
240
241
242
+impl ToPublicKey for bitcoin::secp256k1::PublicKey {
243
+ fn to_public_key(&self) -> bitcoin::PublicKey {
244
+ bitcoin::PublicKey::new(*self)
245
+ }
246
+
247
+ fn hash_to_hash160(hash: &hash160::Hash) -> hash160::Hash {
248
+ *hash
249
250
+}
251
252
impl ToPublicKey for bitcoin::secp256k1::XOnlyPublicKey {
253
fn to_public_key(&self) -> bitcoin::PublicKey {
254
// This code should never be used.
0 commit comments