Module safecoin_clap_utils::keypair
source · Expand description
Loading signers and keypairs from the command line.
This module contains utilities for loading Signers and Keypairs from standard signing sources, from the command line, as in the Safecoin CLI.
The key function here is signer_from_path
, which loads a Signer
from
one of several possible sources by interpreting a “path” command line
argument. Its documentation includes a description of all possible signing
sources supported by the Safecoin CLI. Many other functions here are
variations on, or delegate to, signer_from_path
.
Structs
- A command line argument that loads a default signer in absence of other signers.
Constants
Functions
- Loads a Keypair from one of several possible sources.
- Reads user input from stdin to retrieve a seed phrase and passphrase for keypair derivation.
- Prompts user for a passphrase and then asks for confirmirmation to check for mistakes
- Loads the pubkey of a Signer from one of several possible sources.
- Loads a Signer from one of several possible sources.
- Loads a Signer from one of several possible sources.