bech32/bech32m encoding/decoding library and cli tool. BIP173/BIP350 compatible. based on sipa's bech32 forked by rustyrussell, fiatjaf and lnbits.
Forked from rustyrussell/lightning-payencode and published on PyPI.
The original version of this package is probably the one at sipa/bech32 but apparently Rusty Russel
commented out the 90-length limit of bech32-encoded stuff so it could be used for Lightning invoices.
poetry install
run cli
poetry run bech32 decode tb1aaaaaaaaaaaaaaaaaaaaaa
poetry run bech32 encode tb helloworld