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.electrum_privkey giving error #170

Open
deveshaggrawal19 opened this issue Jul 19, 2017 · 0 comments
Open

bitcoin.electrum_privkey giving error #170

deveshaggrawal19 opened this issue Jul 19, 2017 · 0 comments

Comments

@deveshaggrawal19
Copy link

deveshaggrawal19 commented Jul 19, 2017

Below is the error when i use bitcoin.electrum_privkey('', 0)

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/devesh/.local/lib/python2.7/site-packages/bitcoin/deterministic.py", line 26, in electrum_privkey
    mpk = electrum_mpk(seed)
  File "/home/devesh/.local/lib/python2.7/site-packages/bitcoin/deterministic.py", line 17, in electrum_mpk
    return privkey_to_pubkey(seed)[2:]
  File "/home/devesh/.local/lib/python2.7/site-packages/bitcoin/main.py", line 291, in privkey_to_pubkey
    f = get_privkey_format(privkey)
  File "/home/devesh/.local/lib/python2.7/site-packages/bitcoin/main.py", line 217, in get_privkey_format
    bin_p = b58check_to_bin(priv)
  File "/home/devesh/.local/lib/python2.7/site-packages/bitcoin/main.py", line 427, in b58check_to_bin
    assert bin_dbl_sha256(data[:-4])[:4] == data[-4:]
AssertionError

What should I do

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

1 participant