File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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- "\n Public 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 ! ( "\n Public 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 ! ( "\n Public Key: {}" , public_key. green ( ) . bold( ) ) ;
43+ println ! ( "\n Public Key: {}" , public_key. bold( ) ) ;
4744 }
4845 KeyOutputFormat :: Json => {
4946 print_json ( private_key, & public_key) ?
You can’t perform that action at this time.
0 commit comments