Skip to content

Commit

Permalink
Remove PublicKey::hash requirement
Browse files Browse the repository at this point in the history
  • Loading branch information
romac committed Oct 24, 2023
1 parent 01adbb9 commit ddd0d8d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
1 change: 0 additions & 1 deletion Code/common/src/validator_set.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ pub trait PublicKey
where
Self: Clone + Debug + PartialEq + Eq,
{
fn hash(&self) -> u64; // FIXME: Make the hash type generic
}

/// Defines the requirements for an address.
Expand Down
6 changes: 1 addition & 5 deletions Code/test/src/validator_set.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,7 @@ impl PublicKey {
}
}

impl malachite_common::PublicKey for PublicKey {
fn hash(&self) -> u64 {
self.hash()
}
}
impl malachite_common::PublicKey for PublicKey {}

#[derive(Copy, Clone, Debug, PartialEq, Eq, PartialOrd, Ord)]
pub struct Address(u64);
Expand Down

0 comments on commit ddd0d8d

Please sign in to comment.