bech32 library

Classes

Bech32
Bech32 is a dead simple wrapper around a Human Readable Part (HRP) and a bunch of bytes.
Bech32Codec
Bech32Decoder
Bech32Encoder
Bech32Validations
Generic validations for Bech32 standard.
Segwit
A representation of a Segwit Bech32 address. This class can be used to obtain the scriptPubKey.
SegwitCodec
A codec which converts a Segwit class to its String representation and vice versa.
SegwitDecoder
This class converts a String to a Segwit class instance.
SegwitEncoder
This class converts a Segwit class instance to a String.
SegwitValidations
Generic validations for a Segwit class.

Constants

bech32 → const Bech32Codec
An instance of the default implementation of the Bech32Codec.
const Bech32Codec()
charset → const List<String>
const ["q", "p", "z", "r", "y", "9", "x", "8", "g", "f", "2", "t", "v"…
generator → const List<int>
const [0x3b6a57b2, 0x26508e6d, 0x1ea119fa, 0x3d4233dd, 0x2a1462b3]
segwit → const SegwitCodec
An instance of the default implementation of the SegwitCodec
const SegwitCodec()
separator → const String
"1"

Exceptions / Errors

InvalidAddress
InvalidChecksum
InvalidHrp
InvalidPadding
InvalidProgramLength
InvalidSeparator
InvalidWitnessVersion
MixedCase
OutOfBoundChars
OutOfRangeHrpCharacters
TooLong
TooShortChecksum
TooShortHrp