Skip to content
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

feat: derive Hash for Sealed #707

Merged
merged 1 commit into from
Aug 7, 2024
Merged

feat: derive Hash for Sealed #707

merged 1 commit into from
Aug 7, 2024

Conversation

klkvr
Copy link
Member

@klkvr klkvr commented Aug 7, 2024

Motivation

Solution

PR Checklist

  • Added Tests
  • Added Documentation
  • Breaking changes

@@ -4,7 +4,7 @@ use crate::B256;
///
/// We do not implement any specific hashing algorithm here. Instead types
/// implement the [`Sealable`] trait to provide define their own hash.
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we could impl this manually and use the hash, but since we allow unchecked instantiation, this makes sense

@mattsse mattsse merged commit 4c55acd into main Aug 7, 2024
30 checks passed
@mattsse mattsse deleted the klkvr/hash-sealed branch August 7, 2024 15:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants