Verify proper device before signing

This commit is contained in:
BTChip 2014-08-26 13:04:38 +02:00
parent 7354f01c8e
commit 5873004af4
1 changed files with 3 additions and 0 deletions

View File

@ -218,6 +218,9 @@ class BTChipWallet(NewWallet):
give_error("Not supported")
def sign_message(self, address, message, password):
self.get_client() # prompt for the PIN before displaying the dialog if necessary
if not self.check_proper_device():
give_error('Wrong device or password')
address_path = self.address_id(address)
waitDialog.start("Signing Message ...")
aborted = False