jh: implement SerializableState#889
Merged
Merged
Conversation
05f9b44 to
aedabb5
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
part of #546
adds
SerializableStateforJhCoreand exposes it through the publicJh224,Jh256,Jh384, andJh512wrappers viaFixedHashTraitsthe serialized core state stores the 128-byte compressor state plus the processed block count, matching the wrapper-level serialization tests used by the other hash crates
tests:
cargo test -p jh --all-featurescargo hack test --feature-powersetRUSTFLAGS='-Dwarnings' cargo +1.85.1 hack test --feature-powersetRUSTFLAGS='-Dwarnings' cargo +1.85.1 hack build --target thumbv7em-none-eabi --each-feature --exclude-features default,stdRUSTFLAGS='-Dwarnings' cargo +1.85.1 hack build --target wasm32-unknown-unknown --each-feature --exclude-features default,stdcargo fmt --all -- --checkcargo clippy --all -- -D warningstypos