Thanks to visit codestin.com
Credit goes to github.com

Skip to content

derive_bip32childkey traceback #1436

@oberstet

Description

@oberstet
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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions