package
0.99.99-test-ignore
Repository: https://github.com/ava-labs/avalanchego.git
Documentation: pkg.go.dev
# Functions
Decode [str] to bytes using the given encoding If [str] is the empty string, returns a nil byte slice and nil error.
Encode [bytes] to a string using the given encoding format [bytes] may be nil, in which case it will be treated the same as an empty slice.
FormatAddress takes in a chain prefix, HRP, and byte slice to produce a string for an address.
FormatBech32 takes an address's bytes as input and returns a bech32 address.
IntFormat ...
ParseAddress takes in an address string and splits returns the corresponding parts.
ParseBech32 takes a bech32 address as input and returns the HRP and data section of a bech32 address.
# Interfaces
PrefixedStringer extends a stringer that adds a prefix.
# Type aliases
Encoding defines how bytes are converted to a string and vice versa.