parent
1f9d0fc284
commit
b4b4d6b00d
|
@ -74,7 +74,7 @@ fn output_keypair(
|
||||||
write_keypair(&keypair, &mut stdout)?;
|
write_keypair(&keypair, &mut stdout)?;
|
||||||
} else {
|
} else {
|
||||||
write_keypair_file(&keypair, outfile)?;
|
write_keypair_file(&keypair, outfile)?;
|
||||||
eprintln!("Wrote {} keypair to {}", source, outfile);
|
println!("Wrote {} keypair to {}", source, outfile);
|
||||||
}
|
}
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
@ -434,7 +434,7 @@ fn do_main(matches: &ArgMatches<'_>) -> Result<(), Box<dyn error::Error>> {
|
||||||
let passphrase = if matches.is_present("no_passphrase") {
|
let passphrase = if matches.is_present("no_passphrase") {
|
||||||
NO_PASSPHRASE.to_string()
|
NO_PASSPHRASE.to_string()
|
||||||
} else {
|
} else {
|
||||||
eprintln!("Generating a new keypair");
|
println!("Generating a new keypair");
|
||||||
prompt_passphrase(
|
prompt_passphrase(
|
||||||
"For added security, enter a passphrase (empty for no passphrase): ",
|
"For added security, enter a passphrase (empty for no passphrase): ",
|
||||||
)?
|
)?
|
||||||
|
@ -451,7 +451,7 @@ fn do_main(matches: &ArgMatches<'_>) -> Result<(), Box<dyn error::Error>> {
|
||||||
if !silent {
|
if !silent {
|
||||||
let phrase: &str = mnemonic.phrase();
|
let phrase: &str = mnemonic.phrase();
|
||||||
let divider = String::from_utf8(vec![b'='; phrase.len()]).unwrap();
|
let divider = String::from_utf8(vec![b'='; phrase.len()]).unwrap();
|
||||||
eprintln!(
|
println!(
|
||||||
"{}\npubkey: {}\n{}\nSave this seed phrase to recover your new keypair:\n{}\n{}",
|
"{}\npubkey: {}\n{}\nSave this seed phrase to recover your new keypair:\n{}\n{}",
|
||||||
÷r, keypair.pubkey(), ÷r, phrase, ÷r
|
÷r, keypair.pubkey(), ÷r, phrase, ÷r
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue