sipa / bech32

Code snippets and analysis of the Bech32 format
191 stars 107 forks source link

Convert HRP to lower-case before calculating checksum within `bech32Encode` #50

Open jonathanknowles opened 5 years ago

jonathanknowles commented 5 years ago

This change fixes issue 49 (https://github.com/sipa/bech32/issues/49).

As part of this fix, we also update the test suite with the correct encoding for the upper-case HRP example.