From c167ef6d357bcafaae5a580f6a8677a831e33404 Mon Sep 17 00:00:00 2001 From: BTChip Date: Sun, 5 Jul 2015 18:33:16 +0200 Subject: [PATCH] Implement missing can_sign_xpubkey --- plugins/btchipwallet.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/btchipwallet.py b/plugins/btchipwallet.py index f978e538..217e1cad 100644 --- a/plugins/btchipwallet.py +++ b/plugins/btchipwallet.py @@ -130,6 +130,10 @@ class BTChipWallet(BIP32_HD_Wallet): if not self.accounts: return 'create_accounts' + def can_sign_xpubkey(self, x_pubkey): + xpub, sequence = BIP32_Account.parse_xpubkey(x_pubkey) + return xpub in self.master_public_keys.values() + def can_create_accounts(self): return False