package
1.2.20
Repository: https://github.com/qitmeer/qng-core.git
Documentation: pkg.go.dev

# Functions

ConvertBits converts a byte slice where each byte is encoding fromBits bits, to a byte slice where each byte is encoding toBits bits.
Decode decodes bechString(Bech32) returns hrp(human-readable part) and data(32bit data array) / or error.
Decode decodes a bech32 encoded string, returning the human-readable part and the data part excluding the checksum.
Encode encodes hrp(human-readable part) and data(32bit data array), returns Bech32 / or error if hrp is uppercase, return uppercase Bech32.
Encode encodes a byte slice into a bech32 string with the human-readable part hrb.
SegwitAddrDecode decodes hrp(human-readable part) Segwit Address(string), returns version(int) and data(bytes array) / or error.
SegwitAddrEncode encodes hrp(human-readable part) , version(int) and data(bytes array), returns Segwit Address / or error.