haarts / bech32

Flutter friendly implementation of BIP173
MIT License
9 stars 21 forks source link

Add optional maxLength parameter #1

Closed fusion44 closed 5 years ago

fusion44 commented 5 years ago

Hi,

For my lightning wallet I need to decode lightning network BOLT #11 invoices. The spec uses bech32 encoding but allows for inputs longer than 90 characters. I've added an optional maxLength parameter to the de- and encoder with 90 as the default value. This should be backwards compatible.

CLAassistant commented 5 years ago

CLA assistant check
All committers have signed the CLA.