Module tc_cli::utils[][src]

subcommand utilities

Functions

decode_hex

helper method for decoding hex

format_seed

formats seed as hex

pair_from_suri

generate a pair from suri

print_from_public

Try to parse given public as hex encoded public key and print relevant information.

print_from_uri

Try to parse given uri and print relevant information.

read_message

checks if message is Some, otherwise reads message from stdin and optionally decodes hex

read_uri

helper method to fetch uri from Option<String> either as a file or read from stdin

Type Definitions

PublicFor

Public key type for Runtime

SeedFor

Seed type for Runtime