Repository navigation
feat: parse and display verity salts - #31
Merged
Merged
Conversation
Expose hexadecimal conversion on the existing bounded salt type. Check encoded length before decoding into fixed storage, using a small half-byte match without adding a dependency.
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.
Add hexadecimal
DisplayandFromStrto the existing boundedSalttype. Parsing checks for an even encoded length of at most 512 bytes before a single-matchhalf()helper decodes directly into the fixed array. Display emits lowercase hex; parsing accepts either case and the existing empty salt.No dependency is added. Carapace's parent-prefix rules remain separate from this generic 0–256-byte salt type.
Validation: all eight minimal-feature verity library tests pass, including every-byte round trips and malformed/oversized input; minimal-feature Clippy, formatting and diff checks pass. One commit changes one file by 76 lines. All ten jobs in exact-head CI passed on
42361b9, including Windows, macOS, kernel and MSRV checks. Direct independent review of this exact head found no actionable findings. The reviewer inspected source and verified CI; no tests or coverage were assessed by the reviewer.