# Packages
Package bech32 provides a Go implementation of the bech32 format specified in
BIP 173.
# Functions
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
DecodeAddress decodes the string encoding of an address and returns the Address if addr is a valid encoding for a known address type.
No description provided by the author
No description provided by the author
No description provided by the author
NewAddressWitnessPubKeyHash returns a new AddressWitnessPubKeyHash.
NewAddressWitnessScriptHash returns a new AddressWitnessPubKeyHash.
NewCache creates a new Cache.
No description provided by the author
No description provided by the author
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
# Variables
ErrAddressCollision describes an error where an address can not be uniquely determined as either a pay-to-pubkey-hash or pay-to-script-hash address since the leading identifier is used for describing both address kinds, but for different networks.
ErrChecksumMismatch describes an error where decoding failed due to a bad checksum.
ErrUnknownAddressType describes an error where an address can not decoded as a specific address type due to the string encoding begining with an identifier byte unknown to any standard or registered (via chaincfg.Register) network.
ErrUnsupportedWitnessProgLen describes an error where a segwit address being decoded has an unsupported witness program length.
ErrUnsupportedWitnessVer describes an error where a segwit address being decoded has an unsupported witness version.
# Structs
AddressWitnessPubKeyHash is an Address for a pay-to-witness-pubkey-hash (P2WPKH) output.
AddressWitnessScriptHash is an Address for a pay-to-witness-script-hash (P2WSH) output.
Cache is an LRU cache.
# Interfaces
Address is an interface type for any type of destination a transaction output may spend to.
# Type aliases
No description provided by the author
timeSorter implements sort.Interface to allow a slice of timestamps to be sorted.