Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 is like DecodeGeneric but also checks the checksum according to segwit version.
func DecodeGeneric ¶ added in v0.4.0
Decode decodes a blech32 encoded string, returning the human-readable part and the data part excluding the checksum.
Types ¶
type EncodingType ¶ added in v0.4.0
type EncodingType int64
const ( BLECH32 EncodingType = 0x01 BLECH32M EncodingType = 0x455972a3350f7a1 )
func EncodingTypeFromSegwitVersion ¶ added in v0.4.0
func EncodingTypeFromSegwitVersion(version byte) (EncodingType, error)
Click to show internal directories.
Click to hide internal directories.