Closed mrfelton closed 5 years ago
The spec says that mixed case is invalid.
Yes... the bech32 spec says so, and bech32 does throw.
https://github.com/bitcoinjs/bech32/blob/v1.1.3/index.js#L75-L79
I went ahead and added tests, and simplified the fix a little #13
Closing in favour of #13
According to the bech32 spec, both uppercase and lowercase payment requests are valid. some QR codes use a special mode where they only use UPPER case to encode the data more efficiently.
Here is the relevant part of the spec:
https://github.com/bitcoin/bips/blob/master/bip-0173.mediawiki#specification
This PR adds support for decoding uppercase payment requests