Do any clients show bech32 substitutions if an npub/nsec was copied wrong or mistyped? Some people try to login and it says invalid key, we could be using bech32’s error correction capabilities to fix these errors.

Reply to this note

Please Login to reply.

Discussion

this is a horrible idea, and the reason why it wasn’t done with bitcoin addresses… except…

you could try correcting the error and see if the nsec/npub inputted already exists, and the chance of two npubs being off by only a few bits is low

It was a horrible idea with bitcoin because it could lead to funds getting sent to the void. It is not a horrible idea in the context of nostr.

Yes exactly, your second sentence was what I was thinking. If the profile doesn’t exist you could assume it corrected wrong and not continue with the correction.

Assuming this can work, I imagine some UX where a message and a presumed profile info is presented as "There seems to be a mistake in the pasted input. But could this profile be you?"