Why bech32 addresses can’t be mixed case?

0

I know that they cannot be mixed case due to their BIP but what was the intention behind this idea and would it be problematical to convert a mixed case bech32 address to a lower/upper case bech32 address?

Emil

Posted 2019-11-28T15:31:18.983

Reputation: 63

Answers

0

Having only one case (which is really no case) makes bech32 less prone to handwriting errors. It makes it easier for people to write down a bech32 address as they don't need to be concerned about which casing to use and to distinguish cases. It makes it easier to type in an address as it doesn't matter whether something was accidentally the wrong case.

In general, it is easier to deal with a character set that does not have mixed case characters.

The BIP specifies that mixed case shouldn't be used so that parsers don't mistakenly treat random strings as valid bech32 strings. While it wouldn't matter if a parser normalized the strings to a particular case, doing so would increase the probability that something that is not bech32 is interpreted as bech32. This has some money losing risk so precaution is necessary.

Andrew Chow

Posted 2019-11-28T15:31:18.983

Reputation: 40 910

This is incorrect. BIP173 specifies that parsers should reject mixed case strings. The reason is that it simply massively reduces the chance that random strings are treated as valid bech32.Pieter Wuille 2019-11-28T17:39:41.027

@PieterWuille Updated my answerAndrew Chow 2019-11-28T18:24:23.467