Skip to content

Commit 0fe9137

Browse files
committed
tweak key gen output
1 parent 11e76d1 commit 0fe9137

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

bin/cli/src/command/key.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,14 @@ pub async fn handle(command: &KeyCommand) -> anyhow::Result<()> {
1111
.context("Failed to generate key pair")?;
1212
match format {
1313
KeyOutputFormat::Standard => {
14-
println!(
15-
"\nPublic Key: {}",
16-
keys.public_key.green().bold()
17-
);
1814
// Prefixed with 'base64:' so Core / Periphery know to parse
1915
// private key as base64.
2016
println!(
2117
"Private Key: {}{}",
2218
"base64:".red().bold(),
2319
keys.private_key.red().bold()
2420
);
21+
println!("\nPublic Key: {}", keys.public_key.bold());
2522
}
2623
KeyOutputFormat::Json => print_json(
2724
&format!("base64:{}", keys.private_key),
@@ -43,7 +40,7 @@ pub async fn handle(command: &KeyCommand) -> anyhow::Result<()> {
4340
.context("Failed to compute public key")?;
4441
match format {
4542
KeyOutputFormat::Standard => {
46-
println!("\nPublic Key: {}", public_key.green().bold());
43+
println!("\nPublic Key: {}", public_key.bold());
4744
}
4845
KeyOutputFormat::Json => {
4946
print_json(private_key, &public_key)?

0 commit comments

Comments
 (0)