@@ -36,7 +36,7 @@ pub mod types;
36
36
#[ cfg( feature = "recovery" ) ]
37
37
pub mod recovery;
38
38
39
- use core:: { hash , slice, ptr} ;
39
+ use core:: { slice, ptr} ;
40
40
use types:: * ;
41
41
42
42
/// Flag for context to enable no precomputation
@@ -133,12 +133,6 @@ impl PublicKey {
133
133
}
134
134
}
135
135
136
- impl hash:: Hash for PublicKey {
137
- fn hash < H : hash:: Hasher > ( & self , state : & mut H ) {
138
- state. write ( & self . 0 )
139
- }
140
- }
141
-
142
136
/// Library-internal representation of a Secp256k1 signature
143
137
#[ repr( C ) ]
144
138
pub struct Signature ( [ c_uchar ; 64 ] ) ;
@@ -210,12 +204,6 @@ impl XOnlyPublicKey {
210
204
}
211
205
}
212
206
213
- impl hash:: Hash for XOnlyPublicKey {
214
- fn hash < H : hash:: Hasher > ( & self , state : & mut H ) {
215
- state. write ( & self . 0 )
216
- }
217
- }
218
-
219
207
#[ repr( C ) ]
220
208
pub struct KeyPair ( [ c_uchar ; 96 ] ) ;
221
209
impl_array_newtype ! ( KeyPair , c_uchar, 96 ) ;
@@ -251,12 +239,6 @@ impl KeyPair {
251
239
}
252
240
}
253
241
254
- impl hash:: Hash for KeyPair {
255
- fn hash < H : hash:: Hasher > ( & self , state : & mut H ) {
256
- state. write ( & self . 0 )
257
- }
258
- }
259
-
260
242
extern "C" {
261
243
/// Default ECDH hash function
262
244
#[ cfg_attr( not( rust_secp_no_symbol_renaming) , link_name = "rustsecp256k1_v0_4_1_ecdh_hash_function_default" ) ]
0 commit comments