unc_cli_rs/utils_command/generate_keypair_subcommand/
mod.rs1use std::str::FromStr;
2
3#[derive(Debug, Clone, clap::Parser)]
6pub struct CliGenerateKeypair {
7 #[clap(long)]
8 pub master_seed_phrase: Option<String>,
9 #[clap(long, default_value = "12")]
10 pub new_master_seed_phrase_words_count: usize,
11 #[clap(long, default_value = "m/44'/397'/0'")]
12 pub seed_phrase_hd_path: crate::types::slip10::BIP32Path,
13 #[clap(long, default_value = "plaintext")]
14 pub format: crate::common::OutputFormat,
15}
16
17impl Default for CliGenerateKeypair {
18 fn default() -> Self {
19 Self {
20 master_seed_phrase: None,
21 new_master_seed_phrase_words_count: 12,
22 seed_phrase_hd_path: crate::types::slip10::BIP32Path::from_str("m/44'/397'/0'")
23 .unwrap(),
24 format: crate::common::OutputFormat::Json,
25 }
26 }
27}