Skip to content

Commit

Permalink
add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgeantonio21 committed Nov 21, 2022
1 parent dd08109 commit 7ebbb1b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions applications/tari_console_wallet/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,7 @@ fn get_password(config: &ApplicationConfig, cli: &Cli) -> Option<SafePassword> {
fn get_recovery_seed(boot_mode: WalletBoot, cli: &Cli) -> Result<Option<CipherSeed>, ExitError> {
if matches!(boot_mode, WalletBoot::Recovery) {
let seed = if cli.seed_words.is_some() {
// TODO: fix leaks
let seed_words: SeedWords = SeedWords::new(
cli.seed_words
.clone()
Expand Down
1 change: 1 addition & 0 deletions applications/tari_console_wallet/src/recovery.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ pub fn prompt_private_key_from_seed_words() -> Result<CipherSeed, ExitError> {
println!();
println!("Type or paste all of your seed words on one line, only separated by spaces.");
let input = rl.readline(">> ").map_err(|e| ExitError::new(ExitCode::IOError, e))?;
// TODO: fix leaks
let seed_words: SeedWords =
SeedWords::new(input.split_whitespace().map(|s| Hidden::hide(s.to_string())).collect());

Expand Down

0 comments on commit 7ebbb1b

Please sign in to comment.