cli: print PubKeyHash in getAddress

This commit is contained in:
Wei Yang 2017-10-18 15:28:36 +08:00
parent 009fda2b7c
commit 2974ee8571
1 changed files with 3 additions and 1 deletions

View File

@ -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) {