better key output

This commit is contained in:
rigelrozanski
2018-04-20 12:51:47 -04:00
parent 45a97e1206
commit ca3d3be3af
4 changed files with 48 additions and 37 deletions
+2 -1
View File
@@ -3,6 +3,7 @@ package server
import (
"encoding/hex"
"fmt"
"strings"
"github.com/spf13/cobra"
"github.com/spf13/viper"
@@ -49,7 +50,7 @@ func ShowValidatorCmd(ctx *Context) *cobra.Command {
fmt.Println(string(pubKeyJSONBytes))
return nil
}
pubKeyHex := hex.EncodeToString(pubKey.Bytes())
pubKeyHex := strings.ToUpper(hex.EncodeToString(pubKey.Bytes()))
fmt.Println(pubKeyHex)
return nil
},