crossbario / autobahn-python

WebSocket and WAMP in Python for Twisted and asyncio
https://crossbar.io/autobahn
MIT License
2.48k stars 767 forks source link

derive_bip32childkey traceback #1436

Closed oberstet closed 2 years ago

oberstet commented 3 years ago
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 commented 3 years ago