Skip to content

Commit 54dcd06

Browse files
committed
Remove Hash implementations for zkp types
An breaking change was inadvertently introduced with the release of `rust-secp256k1-sys:0.4.2`. Anyone who had used `impl_array_newtype` for type `T` and had also implemented `hash::Hash` on `T` before version `0.4.2` would now come across a "conflicting implementations error" on version `0.4.2`.
1 parent 5d49c85 commit 54dcd06

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

secp256k1-zkp-sys/src/zkp.rs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -490,12 +490,6 @@ impl Default for Tag {
490490
}
491491
}
492492

493-
impl hash::Hash for Tag {
494-
fn hash<H: hash::Hasher>(&self, state: &mut H) {
495-
self.0.hash(state)
496-
}
497-
}
498-
499493
impl From<[u8; 32]> for Tag {
500494
fn from(bytes: [u8; 32]) -> Self {
501495
Tag(bytes)
@@ -526,12 +520,6 @@ impl Default for PedersenCommitment {
526520
}
527521
}
528522

529-
impl hash::Hash for PedersenCommitment {
530-
fn hash<H: hash::Hasher>(&self, state: &mut H) {
531-
state.write(&self.0)
532-
}
533-
}
534-
535523
/// A ring signature for the "whitelist" scheme.
536524
#[repr(C)]
537525
#[derive(Clone)]

0 commit comments

Comments
 (0)