Documentation ¶
Index ¶
- func FormatAddress(chainIDAlias string, hrp string, addr []byte) (string, error)
- func FormatBech32(hrp string, payload []byte) (string, error)
- func IntFormat(maxValue int) string
- func ParseAddress(addrStr string) (string, string, []byte, error)
- func ParseBech32(addrStr string) (string, []byte, error)
- type CB58
- type CustomStringer
- type DumpBytes
- type PrefixedStringer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatAddress ¶ added in v0.6.1
FormatAddress takes in a chain prefix, HRP, and byte slice to produce a string for an address.
func FormatBech32 ¶ added in v0.6.1
FormatBech32 takes an address's bytes as input and returns a bech32 address
func ParseAddress ¶ added in v0.6.1
ParseAddress takes in an address string and splits returns the corresponding parts. This returns the chain ID alias, bech32 HRP, address bytes, and an error if it occurs.
Types ¶
type CustomStringer ¶
type CustomStringer struct{ Stringer func() string }
CustomStringer ...
func (CustomStringer) String ¶
func (cs CustomStringer) String() string
Click to show internal directories.
Click to hide internal directories.