File tree Expand file tree Collapse file tree 1 file changed +0
-9
lines changed Expand file tree Collapse file tree 1 file changed +0
-9
lines changed Original file line number Diff line number Diff line change @@ -259,23 +259,17 @@ impl ToPublicKey for bitcoin::PublicKey {
259
259
fn to_public_key ( & self ) -> bitcoin:: PublicKey { * self }
260
260
261
261
fn to_sha256 ( hash : & sha256:: Hash ) -> sha256:: Hash { * hash }
262
-
263
262
fn to_hash256 ( hash : & hash256:: Hash ) -> hash256:: Hash { * hash }
264
-
265
263
fn to_ripemd160 ( hash : & ripemd160:: Hash ) -> ripemd160:: Hash { * hash }
266
-
267
264
fn to_hash160 ( hash : & hash160:: Hash ) -> hash160:: Hash { * hash }
268
265
}
269
266
270
267
impl ToPublicKey for bitcoin:: secp256k1:: PublicKey {
271
268
fn to_public_key ( & self ) -> bitcoin:: PublicKey { bitcoin:: PublicKey :: new ( * self ) }
272
269
273
270
fn to_sha256 ( hash : & sha256:: Hash ) -> sha256:: Hash { * hash }
274
-
275
271
fn to_hash256 ( hash : & hash256:: Hash ) -> hash256:: Hash { * hash }
276
-
277
272
fn to_ripemd160 ( hash : & ripemd160:: Hash ) -> ripemd160:: Hash { * hash }
278
-
279
273
fn to_hash160 ( hash : & hash160:: Hash ) -> hash160:: Hash { * hash }
280
274
}
281
275
@@ -292,11 +286,8 @@ impl ToPublicKey for bitcoin::secp256k1::XOnlyPublicKey {
292
286
fn to_x_only_pubkey ( & self ) -> bitcoin:: secp256k1:: XOnlyPublicKey { * self }
293
287
294
288
fn to_sha256 ( hash : & sha256:: Hash ) -> sha256:: Hash { * hash }
295
-
296
289
fn to_hash256 ( hash : & hash256:: Hash ) -> hash256:: Hash { * hash }
297
-
298
290
fn to_ripemd160 ( hash : & ripemd160:: Hash ) -> ripemd160:: Hash { * hash }
299
-
300
291
fn to_hash160 ( hash : & hash160:: Hash ) -> hash160:: Hash { * hash }
301
292
}
302
293
You can’t perform that action at this time.
0 commit comments