Skip to content

Conversation

martinholy
Copy link
Contributor

This pull request fixes the base58.decode() function's output when input includes '1' characters at the start. The code of decode() function is slightly modified to allow for easy counting of leading '1', which subsequently adds 0x00 byte for each '1' to the output bytearray.

@meherett meherett linked an issue Jun 22, 2021 that may be closed by this pull request
@meherett meherett added the bug Something isn't working label Jun 22, 2021
@meherett meherett merged commit 07ace7e into hdwallet-io:master Jun 22, 2021
@meherett
Copy link
Collaborator

@martinholy Very good 👍🏾. Bug #17 fix is done! Thanks.

@martinholy martinholy deleted the base58_decode_fix branch June 23, 2021 07:07
meherett added a commit that referenced this pull request Nov 26, 2024
Fix: Incorrect output of Base58 decoding.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incorrect output of Base58 decoding
2 participants