mirror of
https://github.com/fluencelabs/tendermint
synced 2025-04-26 15:22:15 +00:00
Address is a type alias
This commit is contained in:
parent
3ebe3250ff
commit
67a47e6a0b
@ -16,7 +16,8 @@ import (
|
|||||||
|
|
||||||
// An address is a []byte, but hex-encoded even in JSON.
|
// An address is a []byte, but hex-encoded even in JSON.
|
||||||
// []byte leaves us the option to change the address length.
|
// []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) {
|
func PubKeyFromBytes(pubKeyBytes []byte) (pubKey PubKey, err error) {
|
||||||
if err := wire.ReadBinaryBytes(pubKeyBytes, &pubKey); err != nil {
|
if err := wire.ReadBinaryBytes(pubKeyBytes, &pubKey); err != nil {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user