msg="Enter your BTChip PIN - remaining attempts : "+str(remaining_attempts)
msg="Enter your Ledger PIN - remaining attempts : "+str(remaining_attempts)
else:
msg="Enter your BTChip PIN - WARNING : LAST ATTEMPT. If the PIN is not correct, the dongle will be wiped."
msg="Enter your Ledger PIN - WARNING : LAST ATTEMPT. If the PIN is not correct, the dongle will be wiped."
confirmed,p,pin=self.password_dialog(msg)
ifnotconfirmed:
aborted=True
@ -228,7 +228,7 @@ class BTChipWallet(BIP32_HD_Wallet):
pass
self.client=None
ifnotaborted:
raiseException("Could not connect to your BTChip dongle. Please verify access permissions, PIN, or unplug the dongle and plug it again")
raiseException("Could not connect to your Ledger wallet. Please verify access permissions, PIN, or unplug the dongle and plug it again")
else:
raisee
self.client.bad=False
@ -324,7 +324,7 @@ class BTChipWallet(BIP32_HD_Wallet):
signature=self.get_client().signMessageSign(pin)
exceptBTChipException,e:
ife.sw==0x6a80:
self.give_error("Unfortunately, this message cannot be signed by BTChip. Only alphanumerical messages shorter than 140 characters are supported. Please remove any extra characters (tab, carriage return) and retry.")
self.give_error("Unfortunately, this message cannot be signed by the Ledger wallet. Only alphanumerical messages shorter than 140 characters are supported. Please remove any extra characters (tab, carriage return) and retry.")
else:
self.give_error(e,True)
exceptException,e:
@ -423,7 +423,7 @@ class BTChipWallet(BIP32_HD_Wallet):
msg="Do not enter your device PIN here !\r\n\r\n"+ \
"Your BTChip wants to talk to you and tell you a unique second factor code.\r\n"+ \
"Your Ledger Wallet wants to talk to you and tell you a unique second factor code.\r\n"+ \
"For this to work, please match the character between stars of the output address using your security card\r\n\r\n"+ \
"Output address : "
forindexinrange(len(output)):
@ -498,8 +498,8 @@ class BTChipWallet(BIP32_HD_Wallet):
defpassword_dialog(self,msg=None):
ifnotmsg:
msg=_("Do not enter your device PIN here !\r\n\r\n" \
"Your BTChip wants to talk to you and tell you a unique second factor code.\r\n" \
"For this to work, please open a text editor (on a different computer / device if you believe this computer is compromised) and put your cursor into it, unplug your BTChip and plug it back in.\r\n" \
"Your Ledger Wallet wants to talk to you and tell you a unique second factor code.\r\n" \
"For this to work, please open a text editor (on a different computer / device if you believe this computer is compromised) and put your cursor into it, unplug your Ledger Wallet and plug it back in.\r\n" \
"It should show itself to your computer as a keyboard and output the second factor along with a summary of the transaction it is signing into the text-editor.\r\n\r\n" \
"Check that summary and then enter the second factor code here.\r\n" \
"Before clicking OK, re-plug the device once more (unplug it and plug it again if you read the second factor code on the same computer)")