@@ -36,7 +36,7 @@ pub mod types;
3636#[ cfg( feature = "recovery" ) ]
3737pub mod recovery;
3838
39- use core:: { hash , slice, ptr} ;
39+ use core:: { slice, ptr} ;
4040use types:: * ;
4141
4242/// Flag for context to enable no precomputation
@@ -133,12 +133,6 @@ impl PublicKey {
133133 }
134134}
135135
136- impl hash:: Hash for PublicKey {
137- fn hash < H : hash:: Hasher > ( & self , state : & mut H ) {
138- state. write ( & self . 0 )
139- }
140- }
141-
142136/// Library-internal representation of a Secp256k1 signature
143137#[ repr( C ) ]
144138pub struct Signature ( [ c_uchar ; 64 ] ) ;
@@ -210,12 +204,6 @@ impl XOnlyPublicKey {
210204 }
211205}
212206
213- impl hash:: Hash for XOnlyPublicKey {
214- fn hash < H : hash:: Hasher > ( & self , state : & mut H ) {
215- state. write ( & self . 0 )
216- }
217- }
218-
219207#[ repr( C ) ]
220208pub struct KeyPair ( [ c_uchar ; 96 ] ) ;
221209impl_array_newtype ! ( KeyPair , c_uchar, 96 ) ;
@@ -251,12 +239,6 @@ impl KeyPair {
251239 }
252240}
253241
254- impl hash:: Hash for KeyPair {
255- fn hash < H : hash:: Hasher > ( & self , state : & mut H ) {
256- state. write ( & self . 0 )
257- }
258- }
259-
260242extern "C" {
261243 /// Default ECDH hash function
262244 #[ cfg_attr( not( rust_secp_no_symbol_renaming) , link_name = "rustsecp256k1_v0_4_1_ecdh_hash_function_default" ) ]
0 commit comments