From 2974ee8571b21ffa63e795685cb6249ffec678c5 Mon Sep 17 00:00:00 2001 From: Wei Yang Date: Wed, 18 Oct 2017 15:28:36 +0800 Subject: [PATCH] cli: print PubKeyHash in getAddress --- cli_explore.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cli_explore.go b/cli_explore.go index b82e607..8d07cfa 100644 --- a/cli_explore.go +++ b/cli_explore.go @@ -22,7 +22,9 @@ func (cli *CLI) getAddress(pubKey string) { fullPayload := append(versionedPayload, checksum...) address := Base58Encode(fullPayload) fmt.Println() - fmt.Printf("PubKey : %s\nAddress: %s\n", pubKey, address) + fmt.Printf("PubKey : %s\n", pubKey) + fmt.Printf("PubKeyHash : %x\n", pubKeyHash) + fmt.Printf("Address : %s\n", address) } func (cli *CLI) validateAddr(address string) {