Icon HelpCircleForumIcon Link

⌘K

Icon HelpCircleForumIcon Link
Forc Crypto

Icon LinkForc

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:

Icon LinkHashes an argument with SHA256

forc crypto sha256 test

Icon LinkHashes an argument with Keccak256

forc crypto keccak256 test

Icon LinkHashes a file path with SHA256

forc crypto sha256 {file}

Icon LinkHashes a file path with Keccak256

forc crypto keccak256 {file}

Icon LinkConvert an address to another format

forc crypto address fuel12e0xwx34nfp7jrzvn9mp5qkac3yvp7h8fx37ghl7klf82vv2wkys6wd523

Icon LinkCreates a new key default for block production

forc crypto new-key

Icon LinkCreates a new key for peering

forc crypto new-key -k peering

Icon LinkCreates a new key for block production

forc crypto new-key -k block-production

Icon LinkParses the secret of a block production

forc crypto parse-secret "f5204427d0ab9a311266c96a377f7c329cb8a41b9088225b6fcf40eefb423e28"

Icon LinkParses the secret of a peering

forc crypto parse-secret -k peering "f5204427d0ab9a311266c96a377f7c329cb8a41b9088225b6fcf40eefb423e28"

Icon LinkGet the public key from a message and its signature

forc crypto get-public-key
0x1eff08081394b72239a0cf7ff6b499213dcb7a338bedbd75d072d504588ef27a1f74d5ceb2f111ec02ede097fb09ed00aa9867922ed39299dae0b1afc0fa8661
"This is a message that is signed"