Skip to content

Commit 20a1a94

Browse files
Fix compile errors from change in impl_array_newtype
1 parent 5d49c85 commit 20a1a94

File tree

2 files changed

+1
-13
lines changed

2 files changed

+1
-13
lines changed

secp256k1-zkp-sys/src/zkp.rs

-12
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)]

src/zkp/generator.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use {constants, from_hex, Error, Secp256k1, Signing, Tag};
88
///
99
/// Contrary to a [`crate::SecretKey`], the value 0 is also a valid tweak.
1010
/// Values outside secp curve order are invalid tweaks.
11-
#[derive(Default, Hash)]
11+
#[derive(Default)]
1212
pub struct Tweak([u8; constants::SECRET_KEY_SIZE]);
1313
impl_array_newtype!(Tweak, u8, constants::SECRET_KEY_SIZE);
1414

0 commit comments

Comments
 (0)