SomberNight
312f2641e7
don't use bare except
...
use "except Exception", or if really needed explicitly "except BaseException"
3 years ago
SomberNight
7746cc8e60
bip32: (trivial) rename method strpath_to_intpath, for symmetry
...
Required a much higher mental load to parse the name "convert_bip32_path_to_list_of_uint32"
than to parse "convert_bip32_strpath_to_intpath".
And we already have the ~inverse: "convert_bip32_intpath_to_strpath".
3 years ago
SomberNight
e7849bce94
descriptor.py: clean-up and test PubkeyProvider.get_full_derivation_*
3 years ago
SomberNight
d2f75b7da5
descriptor.py: don't allow ypub/zpub inside descriptors
3 years ago
SomberNight
9d3f53932b
add descriptor.py from bitcoin-core/HWI
3 years ago
SomberNight
373db76ac9
util: kill bh2u
...
no longer useful, and the name is so confusing...
3 years ago
SomberNight
df2bd61de6
bip32: change hardened char "'"->"h" when encoding derivation paths
...
We accept either when decoding - this only changes what we use when encoding.
Single quotes are annoying to use in a shell, as they often need to be escaped.
3 years ago
SomberNight
c744fc4e3d
follow-up prev: do all checks, and add tests
6 years ago
SomberNight
2cf2135528
ecc: abstract away some usage of python-ecdsa: bytes<->int conversions
6 years ago
SomberNight
59c5efb090
keystore: cache BIP32Node.from_xkey(self.xpub)
...
This results in significant performance improvements for
keystore.can_sign() and wallet._add_txinout_derivation_info()
6 years ago
SomberNight
dd14a3fde5
psbt: follow-ups: fix digital bitbox
6 years ago
SomberNight
e6c841d05f
psbt: put fake xpubs into globals. keystores handle xfp/der_prefix missing
6 years ago
SomberNight
bafe8a2fff
integrate PSBT support natively. WIP
6 years ago
SomberNight
9e21b76c91
wallet: stricter validation in export_private_key
...
fixes #5422
7 years ago
SomberNight
3385a94753
logging: basics
7 years ago
SomberNight
11733d6bc2
wizard: normalize bip32 derivation path
...
so that what gets put in storage is "canonical"
(from now on... we could storage upgrade existing wallets
but it's not critical)
7 years ago
SomberNight
85a7aa291e
bip32: refactor whole module. clean-up.
7 years ago
SomberNight
d7c5949365
prefer int.from_bytes over int('0x'+hex, 16)
7 years ago
SomberNight
47b6d3c52c
wizard: make native segwit (bech32) the default for bip39/hw
7 years ago
SomberNight
a88a2dea82
split bip32 from bitcoin.py
7 years ago