Open scottyeager opened 3 years ago
Hey, thanks for the issue!
Would you be able to come up with a test case and exact dependency versions to reproduce this?
The tests in CI do execute hdwallets.BIP32.from_seed(seed)
using ecdsa==0.17.0
and seem to be passing.
I also tried installing ecdsa==0.15.0
locally and the tests did pass with that as well.
Hi, I bumped with this issue today by installing gmpy2.
This should fix it in _utils.py:
-CURVE_ORDER = CURVE_GEN.order()
+CURVE_ORDER = int(CURVE_GEN.order())
@hukkin , master has a 0.1.2
tag, but it does not match the pypi 0.1.2
package, in particular, when trying to create a conda recipe, it fails. master
has the fix needed in _bip32.py.
FYI, the attempt at the conda recipe is at: https://github.com/conda-forge/staged-recipes/pull/23790
Running
hdwallets.BIP32.from_seed()
, I seeAttributeError: 'mpz' object has no attribute 'to_bytes'
.Fixed by downgrading to python-ecdsa 0.14.1, as suggested here: https://github.com/spesmilo/electrum/issues/6068