Skip to content

fix base58.decode_check()#701

Merged
achow101 merged 1 commit intobitcoin-core:masterfrom
benma:base58
Aug 16, 2023
Merged

fix base58.decode_check()#701
achow101 merged 1 commit intobitcoin-core:masterfrom
benma:base58

Conversation

@benma
Copy link
Copy Markdown
Contributor

@benma benma commented Aug 8, 2023

The function used the full sha256 and not just the first four bytes to verify the checksum. As a result, the checksum check always fails.

This breaks the BitBox02 multisig registration, which uses this function to decode xpubs. This broke when it switched to using the internal base58 library over the base58 dependency in 674cb08.

Fixes #700.

The function used the full sha256 and not just the first four bytes to
verify the checksum. As a result, the checksum check always fails.

This breaks the BitBox02 multisig registration, which uses this
function to decode xpubs. This broke when it switched to using the
internal base58 library over the `base58` dependency in
674cb08.

Fixes bitcoin-core#700.
@benma
Copy link
Copy Markdown
Contributor Author

benma commented Aug 15, 2023

ping @achow101. please take a look and merge/release as soon as possible. thanks!

@achow101
Copy link
Copy Markdown
Member

ACK c31eed9

@achow101 achow101 merged commit 315a75b into bitcoin-core:master Aug 16, 2023
@benma benma deleted the base58 branch August 17, 2023 08:05
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

Successfully merging this pull request may close these issues.

Base58 decode_check always returns invalid checksum

2 participants