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

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.

Type Definitions