bitcoin.encoding.bech32 module

Provides methods to encode/decode to/from bech32.

Sources
bitcoin.encoding.bech32.decode(string)[source]

Decodes a bech32 string into a bytes object.

bitcoin.encoding.bech32.encode(hrp, version, program)[source]

Encodes bytes using bech32 convention into an human-readable string.