-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
#4318 forc-crypto
plugin exposing a CLI for common-use cryptographic operations
#5153
Commits on Oct 28, 2023
-
Add forc-crypto plugin exposing a CLI for common-use cryptographic op…
…erations Fixes #4318 Supported algorithms: * [x] keccak256 * [x] sha256 * [x] bech32-to-hex * [x] hex-to-bech32 * [x] new-key * [x] new-parse secret
Configuration menu - View commit details
-
Copy full SHA for 0ba11b2 - Browse repository at this point
Copy the full SHA 0ba11b2View commit details -
Configuration menu - View commit details
-
Copy full SHA for f5ec66b - Browse repository at this point
Copy the full SHA f5ec66bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4850633 - Browse repository at this point
Copy the full SHA 4850633View commit details -
It's either a file path *or* a binary (that may be encoded as a hex string otherwise it is a valid UTF-8 string). File content is always treated as a binary file, as is.
Configuration menu - View commit details
-
Copy full SHA for 5597cc1 - Browse repository at this point
Copy the full SHA 5597cc1View commit details -
Added HashArgs which takes no or 1 argument. The usage is as follows: 1. Zero or one argument is accepted 2. If no argument is passed, `stdin` is being read 3. The argument will be checked to be a file path, if it is the content will be loaded from the file 4. Otherwise, the content is treated as a string 5. If the string is "-", `stdin` is being read 6. If the string starts with "0x", it will be treated as a hex string. Only fully valid hex strings are accepted. 7. Any other string, or any malformed hex string will be treated as a vector of bytes
Configuration menu - View commit details
-
Copy full SHA for 810d08c - Browse repository at this point
Copy the full SHA 810d08cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 981dcb3 - Browse repository at this point
Copy the full SHA 981dcb3View commit details -
Move args related code to their own file
Added unit tests to the argument parsing logic
Configuration menu - View commit details
-
Copy full SHA for a5b7752 - Browse repository at this point
Copy the full SHA a5b7752View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0ea2170 - Browse repository at this point
Copy the full SHA 0ea2170View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7951ae4 - Browse repository at this point
Copy the full SHA 7951ae4View commit details -
Print secret message to tty, normal message otherwise
Port 586ff3e547feddb782dde3d8dde7e45842df92ba from FuelLabs/fuel-core#1426 Context: FuelLabs/fuel-core#1426 (comment)
Configuration menu - View commit details
-
Copy full SHA for 3756de5 - Browse repository at this point
Copy the full SHA 3756de5View commit details -
Update forc-plugins/forc-crypto/Cargo.toml
Co-authored-by: Joshua Batty <joshpbatty@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 84a0f65 - Browse repository at this point
Copy the full SHA 84a0f65View commit details -
Update forc-plugins/forc-crypto/Cargo.toml
Co-authored-by: Joshua Batty <joshpbatty@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 035c2ee - Browse repository at this point
Copy the full SHA 035c2eeView commit details -
Update forc-plugins/forc-crypto/Cargo.toml
Co-authored-by: Joshua Batty <joshpbatty@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 599d6b0 - Browse repository at this point
Copy the full SHA 599d6b0View commit details -
Configuration menu - View commit details
-
Copy full SHA for b154b73 - Browse repository at this point
Copy the full SHA b154b73View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3a8da24 - Browse repository at this point
Copy the full SHA 3a8da24View commit details -
Update forc-plugins/forc-crypto/src/keygen/new_key.rs
Co-authored-by: Sophie Dankel <47993817+sdankel@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 034c4c0 - Browse repository at this point
Copy the full SHA 034c4c0View commit details -
Have a better way to print to stdout
Each handler will return a serde_json::Value instead of printing themselves
Configuration menu - View commit details
-
Copy full SHA for 57ecabc - Browse repository at this point
Copy the full SHA 57ecabcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1a5ae28 - Browse repository at this point
Copy the full SHA 1a5ae28View commit details -
Configuration menu - View commit details
-
Copy full SHA for a7eca67 - Browse repository at this point
Copy the full SHA a7eca67View commit details -
Configuration menu - View commit details
-
Copy full SHA for c79d7da - Browse repository at this point
Copy the full SHA c79d7daView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1583fe5 - Browse repository at this point
Copy the full SHA 1583fe5View commit details -
Configuration menu - View commit details
-
Copy full SHA for d22eab0 - Browse repository at this point
Copy the full SHA d22eab0View commit details