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

Bug report: Base58 wrong conversion #1742

Closed
wackazong opened this issue Feb 29, 2024 · 0 comments · Fixed by #1763
Closed

Bug report: Base58 wrong conversion #1742

wackazong opened this issue Feb 29, 2024 · 0 comments · Fixed by #1763
Labels

Comments

@wackazong
Copy link

Describe the bug
The base58 implementation is producing incorrect results.

To Reproduce

  1. Go to '...'
  2. The result must be 16 times "1", not 17 times
  3. Compare with the invert operation which is also wrong: https://gchq.github.io/CyberChef/#recipe=From_Base58('123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz',true)To_Decimal('Space',false)&input=MTExMTExMTExMTExMTExMQ
  4. This gives me back 18 bytes, not 16 bytes.

Expected behaviour
Correct base58 string generation

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

Successfully merging a pull request may close this issue.

1 participant