-
Notifications
You must be signed in to change notification settings - Fork 271
Migrate to digest::newtype!
#678
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
base: master
Are you sure you want to change the base?
Conversation
digest::newtype!
macrodigest::newtype!
|
||
impl SerializableState for $name { | ||
// TODO: implement properly with U400 | ||
type SerializedStateSize = digest::consts::U0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To properly implement this trait we need to implement optimized serialization for eager hashes (otherwise we would need to implement ArraySize
for U537
and U569
). I plan to do it in later PRs.
|
||
fn serialize(&self) -> SerializedState<Self> { | ||
todo!() | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a placeholder impl. To implement it properly we probably need to resolve #546 first.
Depends on RustCrypto/traits#1799.
Crates: