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

Bech32 address improvements #2571

Merged
merged 2 commits into from Jan 27, 2021

Conversation

benthecarman
Copy link
Collaborator

Fixes so we can read uppercase addresses, adds some decoding optimizations, and makes sure we verify the checksum of the address.

@benthecarman benthecarman added the core work for the core project label Jan 27, 2021
@benthecarman benthecarman added this to the v0.5.0 milestone Jan 27, 2021
@@ -305,6 +305,17 @@ object Bech32 extends Bech32 {
val charset: Vector[Char] = Vector('q', 'p', 'z', 'r', 'y', '9', 'x', '8',
'g', 'f', '2', 't', 'v', 'd', 'w', '0', 's', '3', 'j', 'n', '5', '4', 'k',
'h', 'c', 'e', '6', 'm', 'u', 'a', '7', 'l')

/** The Bech32 character set for decoding. */
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is there a reference to this? Is it reversed or the inverse?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added link from where I got it from

@Christewart Christewart merged commit aa0a6f9 into bitcoin-s:master Jan 27, 2021
@benthecarman benthecarman deleted the bech32-improvements branch January 27, 2021 19:22
Christewart pushed a commit that referenced this pull request May 1, 2021
* Bech32 address improvements

* Respond to review
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core work for the core project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants