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

derive_bip32childkey traceback #1436

Closed
oberstet opened this issue Dec 14, 2020 · 1 comment
Closed

derive_bip32childkey traceback #1436

oberstet opened this issue Dec 14, 2020 · 1 comment

Comments

@oberstet
Copy link
Contributor

Traceback (most recent call last):
  File "./cloud/planet_xbr_crossbarfx/set-xbrnetwork-ethkey.py", line 15, in <module>
    account = account_from_seedphrase(seedphrase, account_idx)
  File "/home/oberstet/cpy382_1/lib/python3.8/site-packages/autobahn/xbr/__init__.py", line 250, in account_from_seedphrase
    key = mnemonic_to_private_key(seephrase, str_derivation_path=derivation_path)
  File "/home/oberstet/cpy382_1/lib/python3.8/site-packages/autobahn/xbr/_mnemonic.py", line 160, in mnemonic_to_private_key
    private_key, chain_code = derive_bip32childkey(private_key, chain_code, i)
  File "/home/oberstet/cpy382_1/lib/python3.8/site-packages/autobahn/xbr/_mnemonic.py", line 90, in derive_bip32childkey
    key = key.to_bytes(32, byteorder='big')
AttributeError: 'mpz' object has no attribute 'to_bytes'
@oberstet
Copy link
Contributor Author

oberstet commented Dec 14, 2020

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

No branches or pull requests

1 participant