sipa / bech32

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

Allow first bech32 character to be uppercase? #25

Closed dermoth closed 6 years ago

dermoth commented 7 years ago

While I understand why Bech requires all upper or lower characters, I think the standard should still permit the first character to be uppercase as many mobile input devices will automatically make it so.

Explicitly allowing so in the standard will avoid developers from having to choose between usability and correctness. It also reduce the risk of having non-standard applications create confusion amongst users.

sipa commented 7 years ago

@dermoth Interesting observation, but it does seem very platform specific - so perhaps it's better to deal with it specifically there?

dermoth commented 7 years ago

Yes and no... suppose I have a web-based application that takes an address for input, this is not platform-specifc per se, but then if I use my mobile browser on it and it capitalizes the address it may fail.

Similarly, I could enter the address in an email and the client could auto-corect it by capitalizing the first letter... then once copy-pasted into an application it would fail.

dcousens commented 7 years ago

@dermoth the interface should disable auto capitalization? autocapitalize="off"

sipa commented 6 years ago

@dermoth I don't expect this to be a big problem, and even in the cases where it is, I'd rather be overly cautious - if user interfaces modify input in some ways, we can't prevent them from modifying them in other ways too, which are perhaps more of an issue.