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 Solana 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 Solana CLI. Many other functions here are
variations on, or delegate to, signer_from_path
.
Structs§
- CliSigner
Info - Default
Signer - A command line argument that loads a default signer in absence of other signers.
- Sign
Only - Signer
From Path Config
Constants§
Functions§
- keypair_
from_ path - Loads a Keypair from one of several possible sources.
- keypair_
from_ seed_ phrase - Reads user input from stdin to retrieve a seed phrase and passphrase for keypair derivation.
- presigner_
from_ pubkey_ sigs - prompt_
passphrase - Prompts user for a passphrase and then asks for confirmirmation to check for mistakes
- pubkey_
from_ path - Loads the pubkey of a Signer from one of several possible sources.
- resolve_
signer_ from_ path - signer_
from_ path - Loads a Signer from one of several possible sources.
- signer_
from_ path_ with_ config - Loads a Signer from one of several possible sources.