Skip to content

Commit

Permalink
HardwareWalletClient: store fingerprint
Browse files Browse the repository at this point in the history
  • Loading branch information
Sjors committed Feb 2, 2019
1 parent 1865cf2 commit d78fc1f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions hwilib/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ def find_device(device_path, password='', device_type=None, fingerprint=None):
client.close()
continue
else:
client.fingerprint = master_fpr
return client
except:
pass # Ignore things we wouldn't get fingerprints for
Expand Down
1 change: 1 addition & 0 deletions hwilib/hwwclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ def __init__(self, path, password):
self.password = password
self.message_magic = b"\x18Bitcoin Signed Message:\n"
self.is_testnet = False
self.fingerprint = None

# Get the master BIP 44 pubkey
def get_master_xpub(self):
Expand Down

0 comments on commit d78fc1f

Please sign in to comment.