Python library for encoding and decoding Bech32 and Bech32m addresses (Bitcoin improvement BIP-350). Version 1.0.0 supports Python 3.9+ with a stable API based on BIP-0173 and BIP-0350. Release cadence is low; maintained on GitHub.
pip install bech32mVerified import paths — ran on the pinned version, not inferred.
Encode and decode a Bech32m address (BIP-350). The data argument is a list of 5-bit integers.
Use 'from bech32m import ...' instead of 'from bech32 import ...'. Uninstall 'bech32' if present.
Convert bytes to 5-bit groups using a conversion function (e.g., ods/bech32m provides a utility, but the main API does not include one; handle this externally).