solana_clap_utils::keypair

Function keypair_from_seed_phrase

Source
pub fn keypair_from_seed_phrase(
    keypair_name: &str,
    skip_validation: bool,
    confirm_pubkey: bool,
    derivation_path: Option<DerivationPath>,
    legacy: bool,
) -> Result<Keypair, Box<dyn Error>>
Expand description

Reads user input from stdin to retrieve a seed phrase and passphrase for keypair derivation.

Optionally skips validation of seed phrase. Optionally confirms recovered public key.