-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add --hash flag to CLI commands
This commit adds a --hash/-H flag to the CLI commands to support specifying the underlying hash algorithm to use for IDs. Currently only SHA-256 is supposed, but the OmniBOR spec is designed to handle future changes to add other algorithms (for example, if SHA-256 is later broken and collisions become possible to generate). It also mildly improves help text for the CLI. Signed-off-by: Andrew Lilley Brinker <[email protected]>
- Loading branch information
1 parent
07ff016
commit ad090d3
Showing
1 changed file
with
83 additions
and
34 deletions.
There are no files selected for viewing
This file contains 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