Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detect bech32 typo position(s) #116

Open
Sjors opened this issue Jun 14, 2019 · 0 comments
Open

Detect bech32 typo position(s) #116

Sjors opened this issue Jun 14, 2019 · 0 comments

Comments

@Sjors
Copy link
Contributor

Sjors commented Jun 14, 2019

The bech32 address format has pretty neat error detection functions that could really improve a wallet user experience. See it in action here.

Schermafbeelding 2019-06-14 om 10 36 31

We could add something like:

`wally_validate_bech32(const char *addr, const char *addr_family, uint32_t flags, unsigned char *bytes_out, size_t len, size_t *written

where bytes_out is be an array with the position(s) of invalid characters.

I'm not sure how this would be implemented.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant