Usage: forc-crypto
Commands: keccak256 Hashes the argument or file with this algorithm sha256 Hashes the argument or file with this algorithm address Converts an address to another format get-public-key Get the public key from a message and its signature new-key Creates a new key for use with fuel-core parse-secret Parses a private key to view the associated public key help Print this message or the help of the given subcommand(s)
Options:
-h
, --help
Print help
-V
, --version
Print version
EXAMPLES:
forc crypto sha256 test
forc crypto keccak256 test
forc crypto sha256 {file}
forc crypto keccak256 {file}
forc crypto address fuel12e0xwx34nfp7jrzvn9mp5qkac3yvp7h8fx37ghl7klf82vv2wkys6wd523
forc crypto new-key
forc crypto new-key -k peering
forc crypto new-key -k block-production
forc crypto parse-secret "f5204427d0ab9a311266c96a377f7c329cb8a41b9088225b6fcf40eefb423e28"
forc crypto parse-secret -k peering "f5204427d0ab9a311266c96a377f7c329cb8a41b9088225b6fcf40eefb423e28"
forc crypto get-public-key
0x1eff08081394b72239a0cf7ff6b499213dcb7a338bedbd75d072d504588ef27a1f74d5ceb2f111ec02ede097fb09ed00aa9867922ed39299dae0b1afc0fa8661
"This is a message that is signed"