From 0021f1cc5f648b800980bfb438440b828cfa3c8d Mon Sep 17 00:00:00 2001 From: Alex Vanin Date: Fri, 6 Nov 2020 16:23:31 +0300 Subject: [PATCH] [#81] cmd/neofs-cli: Use hex encoding of node's public key Signed-off-by: Alex Vanin --- cmd/neofs-cli/modules/netmap.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/neofs-cli/modules/netmap.go b/cmd/neofs-cli/modules/netmap.go index 74fa73e61..4a66aedec 100644 --- a/cmd/neofs-cli/modules/netmap.go +++ b/cmd/neofs-cli/modules/netmap.go @@ -3,10 +3,10 @@ package cmd import ( "bytes" "context" + "encoding/hex" "encoding/json" "fmt" - "github.com/mr-tron/base58" "github.com/nspcc-dev/neofs-api-go/pkg/netmap" "github.com/spf13/cobra" ) @@ -96,7 +96,7 @@ func prettyPrintNodeInfo(i *netmap.NodeInfo, jsonEncoding bool) { return } - fmt.Println("key:", base58.Encode(i.PublicKey())) + fmt.Println("key:", hex.EncodeToString(i.PublicKey())) fmt.Println("address:", i.Address()) fmt.Println("state:", i.State())