forc-crypto
Forc plugin for hashing arbitrary data.
USAGE:
forc-crypto
OPTIONS:
-h
, --help
Print help information
-V
, --version
Print version information
SUBCOMMANDS:
address
Converts an address to another format
help
Print this message or the help of the given subcommand(s)
keccak256
Hashes the argument or file with this algorithm
new-key
Creates a new key for use with fuel-core
parse-secret
Parses a private key to view the associated public key
sha256
Hashes the argument or file with this algorithm
``
EXAMPLES:
#Hashes
an argument with SHA256
forc
crypto sha256 test
``
#Hashes
an argument with Keccak256
forc
crypto keccak256 test
``
#Hashes
a file path with SHA256
forc
crypto sha256 src/args.rs
``
#Hashes
a file path with Keccak256
forc
crypto keccak256 src/args.rs
``
#Convert
an address to another format
forc
crypto address fuel12e0xwx34nfp7jrzvn9mp5qkac3yvp7h8fx37ghl7klf82vv2wkys6wd523
``
#Creates
a new key default for block production
forc
crypto new-key
``
#Creates
a new key for peering
forc
crypto new-key -k peering
``
#Creates
a new key for block production
forc
crypto new-key -k block-production
``
#Parses
the secret of a block production
forc
crypto parse-secret "f5204427d0ab9a311266c96a377f7c329cb8a41b9088225b6fcf40eefb423e28"
``
#Parses
the secret of a peering
forc
crypto parse-secret -k peering
"f5204427d0ab9a311266c96a377f7c329cb8a41b9088225b6fcf40eefb423e28"
``