use super::*; #[derive(Debug, Parser)] pub(crate) struct Restore { #[arg(help = "Restore wallet from <MNEMONIC>")] mnemonic: Mnemonic, #[arg( long, default_value = "", help = "Use <PASSPHRASE> when deriving wallet" )] pub(crate) passphrase: String, } impl Restore { pub(crate) fn run(self, options: Options) -> SubcommandResult { initialize_wallet(&options, self.mnemonic.to_seed(self.passphrase))?; Ok(Box::new(Empty {})) } }
Inscription number 44,989,115
Genesis block 819,068
File type text
File size 463 b
Creation date Nov 30,2023 3:4 am