rust-bitcoin / rust-bech32

Bech32 format encoding and decoding
MIT License
93 stars 49 forks source link

Remove unnecessary call to to_ascii_lowercase #149

Closed tcharding closed 11 months ago

tcharding commented 11 months ago

We already iterate over lowercase characters when encoding a bech32 string, no need to call to_ascii_lowercase.

Add a unit test as documentation of this behavior as well as to verify the change is correct.