Documentation ¶
Index ¶
- func ConvertAndEncode(hrp string, data []byte) (string, error)
- func ConvertBits(data []byte, fromBits, toBits uint8, pad bool) ([]byte, error)
- func Decode(bech string) (string, []byte, error)
- func DecodeAndConvert(bech string) (string, []byte, error)
- func Encode(hrp string, data []byte) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertAndEncode ¶
ConvertAndEncode converts from a base64 encoded byte string to base32 encoded byte string and then to bech32
func ConvertBits ¶
ConvertBits converts a byte slice where each byte is encoding fromBits bits, to a byte slice where each byte is encoding toBits bits.
func Decode ¶
Decode decodes a bech32 encoded string, returning the human-readable part and the data part excluding the checksum.
func DecodeAndConvert ¶
DecodeAndConvert decodes a bech32 encoded string and converts to base64 encoded bytes
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.