1
0

A fix and cleanups for hardware wallets

This commit is contained in:
Neil Booth
2015-12-26 12:02:19 +09:00
parent 8f91af28a5
commit c298860e11
4 changed files with 8 additions and 36 deletions

View File

@@ -65,11 +65,6 @@ class BTChipWallet(BIP32_HD_Wallet):
def can_create_accounts(self):
return False
def synchronize(self):
# synchronize existing accounts
BIP32_Wallet.synchronize(self)
# no further accounts for the moment
def can_change_password(self):
return False
@@ -152,9 +147,6 @@ class BTChipWallet(BIP32_HD_Wallet):
account_id, (change, address_index) = self.get_address_index(address)
return "44'/0'/%s'/%d/%d" % (account_id, change, address_index)
def create_main_account(self, password):
self.create_account('Main account', None) #name, empty password
def derive_xkeys(self, root, derivation, password):
derivation = derivation.replace(self.root_name,"44'/0'/")
xpub = self.get_public_key(derivation)
@@ -494,5 +486,3 @@ class LedgerPlugin(BasePlugin):
self.wallet.sign_transaction(tx, None)
except Exception as e:
tx.error = str(e)