Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions secp256k1-zkp-sys/src/zkp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -490,12 +490,6 @@ impl Default for Tag {
}
}

impl hash::Hash for Tag {
fn hash<H: hash::Hasher>(&self, state: &mut H) {
self.0.hash(state)
}
}

impl From<[u8; 32]> for Tag {
fn from(bytes: [u8; 32]) -> Self {
Tag(bytes)
Expand Down Expand Up @@ -526,12 +520,6 @@ impl Default for PedersenCommitment {
}
}

impl hash::Hash for PedersenCommitment {
fn hash<H: hash::Hasher>(&self, state: &mut H) {
state.write(&self.0)
}
}

/// A ring signature for the "whitelist" scheme.
#[repr(C)]
#[derive(Clone)]
Expand Down
2 changes: 1 addition & 1 deletion src/zkp/generator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use {constants, from_hex, Error, Secp256k1, Signing, Tag};
///
/// Contrary to a [`crate::SecretKey`], the value 0 is also a valid tweak.
/// Values outside secp curve order are invalid tweaks.
#[derive(Default, Hash)]
#[derive(Default)]
pub struct Tweak([u8; constants::SECRET_KEY_SIZE]);
impl_array_newtype!(Tweak, u8, constants::SECRET_KEY_SIZE);

Expand Down