BIP32_HD_Wallet: Fix address derivation
Unfortunately there was root_name and root_derivation confusion in the past for classes derived from BIP_32_HD_Wallet. Address derivation used root_name and so would begin with 'x/' whereas it should have begun with root_derivation, and so started with 'm/'. This fixes that old wart and removes some fudges from the trezor code that used to work around it.
This commit is contained in:
@@ -63,6 +63,10 @@ class BTChipWallet(BIP44_Wallet):
|
||||
assert not self.has_seed()
|
||||
return self.force_watching_only
|
||||
|
||||
def address_id(self, address):
|
||||
# Strip the leading "m/"
|
||||
return BIP44_Wallet.address_id(self, address)[2:]
|
||||
|
||||
def get_client(self, noPin=False):
|
||||
if not BTCHIP:
|
||||
self.give_error('please install github.com/btchip/btchip-python')
|
||||
|
||||
Reference in New Issue
Block a user