Skip to content

Commit

Permalink
Address is a type alias
Browse files Browse the repository at this point in the history
  • Loading branch information
ebuchman committed Jan 6, 2018
1 parent 3ebe325 commit 67a47e6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pub_key.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ import (

// An address is a []byte, but hex-encoded even in JSON.
// []byte leaves us the option to change the address length.
type Address cmn.HexBytes
// Use an alias so Unmarshal methods (with ptr receivers) are available too.
type Address = cmn.HexBytes

func PubKeyFromBytes(pubKeyBytes []byte) (pubKey PubKey, err error) {
if err := wire.ReadBinaryBytes(pubKeyBytes, &pubKey); err != nil {
Expand Down

0 comments on commit 67a47e6

Please sign in to comment.