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

Bitcoin private address overflow? #17

Open
rustyrussell opened this issue Jun 4, 2018 · 1 comment
Open

Bitcoin private address overflow? #17

rustyrussell opened this issue Jun 4, 2018 · 1 comment

Comments

@rustyrussell
Copy link

Seems it can't decode the BTCP address b1PDnwGsgBcDpkqjxgmTvrj9R2kQyeEZHZ4: have they changed the length or something?

OverflowError                             Traceback (most recent call last)
<ipython-input-1-bb8de2d1ec62> in <module>()
     28     num += i
     29 
---> 30 print(decode_base58(destination))
     31 # sanity check
     32 if not decode_base58(destination)[:len(prefix)] == prefix:

/pybtcfork/helper.py in decode_base58(s, num_bytes, strip_leading_zeros)
     47         num *= 58
     48         num += BASE58_ALPHABET.index(c)
---> 49     combined = num.to_bytes(num_bytes, byteorder='big')
     50     if strip_leading_zeros:
     51         while combined[0] == 0:
@viknash
Copy link

viknash commented Aug 17, 2018

I am having the same issue with this address b19YRNx6Cn6CRXFNZA4m4JPdB3CEMm1SyNS

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

2 participants