You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
C:\ProgramData\Anaconda3\lib\site-packages\cosmospy_wallet.py in seed_to_privkey(seed, path)
45 # This can raise a hdwallets.BIP32DerivationError (which we alias so
46 # that the same exception type is also in the cosmospy namespace).
---> 47 derived_privkey = hd_wallet.get_privkey_from_path(path)
48
49 return derived_privkey
Python 3.10.4 (tags/v3.10.4:9d38120, Mar 23 2022, 23:13:41) [MSC v.1929 64 bit (AMD64)] on win32
from cosmospy import BIP32DerivationError, seed_to_privkey
seed = ("angry mouse")
try:
except BIP32DerivationError:
AttributeError Traceback (most recent call last)
in
9 seed = ("angry mouse")
10 try:
---> 11 privkey = seed_to_privkey(seed,"m/44'/118'/2'/0/0")
12 except BIP32DerivationError:
13 print("No valid private key in this derivation path!")
C:\ProgramData\Anaconda3\lib\site-packages\cosmospy_wallet.py in seed_to_privkey(seed, path)
45 # This can raise a
hdwallets.BIP32DerivationError
(which we alias so46 # that the same exception type is also in the
cosmospy
namespace).---> 47 derived_privkey = hd_wallet.get_privkey_from_path(path)
48
49 return derived_privkey
C:\ProgramData\Anaconda3\lib\site-packages\hdwallets_bip32.py in get_privkey_from_path(self, path)
78 :return: privkey (bytes)
79 """
---> 80 return self.get_extended_privkey_from_path(path)[1]
81
82 def get_extended_pubkey_from_path(
C:\ProgramData\Anaconda3\lib\site-packages\hdwallets_bip32.py in get_extended_privkey_from_path(self, path)
68 assert isinstance(privkey, bytes)
69 for index in path:
---> 70 privkey, chaincode = _derive_private_child(privkey, chaincode, index)
71 return chaincode, privkey
72
C:\ProgramData\Anaconda3\lib\site-packages\hdwallets_utils.py in _derive_private_child(privkey, chaincode, index)
60 f"Invalid private key at index {index}, try the next one!"
61 )
---> 62 secret = k_int.to_bytes(32, "big")
63
64 return secret, payload[32:]
AttributeError: 'mpz' object has no attribute 'to_bytes'
The text was updated successfully, but these errors were encountered: