Browse Source

made sure to check if x_pubkey is valid xpub before parsing it

master
Darin Stanchfield 10 years ago
parent
commit
24af832fbd
  1. 1
      plugins/keepkey.py
  2. 1
      plugins/trezor.py

1
plugins/keepkey.py

@ -283,6 +283,7 @@ class Plugin(BasePlugin):
)
# find which key is mine
for x_pubkey in x_pubkeys:
if is_extended_pubkey(x_pubkey):
xpub, s = BIP32_Account.parse_xpubkey(x_pubkey)
if xpub in self.xpub_path:
xpub_n = self.get_client().expand_path(self.xpub_path[xpub])

1
plugins/trezor.py

@ -282,6 +282,7 @@ class Plugin(BasePlugin):
)
# find which key is mine
for x_pubkey in x_pubkeys:
if is_extended_pubkey(x_pubkey):
xpub, s = BIP32_Account.parse_xpubkey(x_pubkey)
if xpub in self.xpub_path:
xpub_n = self.get_client().expand_path(self.xpub_path[xpub])

Loading…
Cancel
Save