Skip to content

Fix build errors #44

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
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