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 @@ -255,23 +255,17 @@ impl ToPublicKey for bitcoin::PublicKey {
255255 fn to_public_key ( & self ) -> bitcoin:: PublicKey { * self }
256256
257257 fn to_sha256 ( hash : & sha256:: Hash ) -> sha256:: Hash { * hash }
258-
259258 fn to_hash256 ( hash : & hash256:: Hash ) -> hash256:: Hash { * hash }
260-
261259 fn to_ripemd160 ( hash : & ripemd160:: Hash ) -> ripemd160:: Hash { * hash }
262-
263260 fn to_hash160 ( hash : & hash160:: Hash ) -> hash160:: Hash { * hash }
264261}
265262
266263impl ToPublicKey for bitcoin:: secp256k1:: PublicKey {
267264 fn to_public_key ( & self ) -> bitcoin:: PublicKey { bitcoin:: PublicKey :: new ( * self ) }
268265
269266 fn to_sha256 ( hash : & sha256:: Hash ) -> sha256:: Hash { * hash }
270-
271267 fn to_hash256 ( hash : & hash256:: Hash ) -> hash256:: Hash { * hash }
272-
273268 fn to_ripemd160 ( hash : & ripemd160:: Hash ) -> ripemd160:: Hash { * hash }
274-
275269 fn to_hash160 ( hash : & hash160:: Hash ) -> hash160:: Hash { * hash }
276270}
277271
@@ -288,11 +282,8 @@ impl ToPublicKey for bitcoin::secp256k1::XOnlyPublicKey {
288282 fn to_x_only_pubkey ( & self ) -> bitcoin:: secp256k1:: XOnlyPublicKey { * self }
289283
290284 fn to_sha256 ( hash : & sha256:: Hash ) -> sha256:: Hash { * hash }
291-
292285 fn to_hash256 ( hash : & hash256:: Hash ) -> hash256:: Hash { * hash }
293-
294286 fn to_ripemd160 ( hash : & ripemd160:: Hash ) -> ripemd160:: Hash { * hash }
295-
296287 fn to_hash160 ( hash : & hash160:: Hash ) -> hash160:: Hash { * hash }
297288}
298289
You can’t perform that action at this time.
0 commit comments