Example #1
0
 def passphrase_dialog(self, msg):
     d = PasswordDialog(self.top_level_window(), None, msg, PW_PASSPHRASE)
     confirmed, p, passphrase = d.run()
     if confirmed:
         passphrase = BIP44_Wallet.normalize_passphrase(passphrase)
     self.passphrase = passphrase
     self.done.set()
Example #2
0
 def passphrase_dialog(self, msg):
     d = PasswordDialog(self.top_level_window(), None, msg, PW_PASSPHRASE)
     confirmed, p, passphrase = d.run()
     if confirmed:
         passphrase = BIP44_Wallet.normalize_passphrase(passphrase)
     self.passphrase = passphrase
     self.done.set()
Example #3
0
 def callback_PassphraseRequest(self, req):
     if self.creating_wallet:
         msg = _("Enter a passphrase to generate this wallet.  Each time "
                 "you use this wallet your %s will prompt you for the "
                 "passphrase.  If you forget the passphrase you cannot "
                 "access the bitcoins in the wallet.") % self.device
     else:
         msg = _("Enter the passphrase to unlock this wallet:")
     passphrase = self.handler.get_passphrase(msg, self.creating_wallet)
     if passphrase is None:
         return self.proto.Cancel()
     passphrase = BIP44_Wallet.normalize_passphrase(passphrase)
     return self.proto.PassphraseAck(passphrase=passphrase)
Example #4
0
 def callback_PassphraseRequest(self, req):
     if self.creating_wallet:
         msg = _("Enter a passphrase to generate this wallet.  Each time "
                 "you use this wallet your %s will prompt you for the "
                 "passphrase.  If you forget the passphrase you cannot "
                 "access the bitcoins in the wallet.") % self.device
     else:
         msg = _("Enter the passphrase to unlock this wallet:")
     passphrase = self.handler.get_passphrase(msg, self.creating_wallet)
     if passphrase is None:
         return self.proto.Cancel()
     passphrase = BIP44_Wallet.normalize_passphrase(passphrase)
     return self.proto.PassphraseAck(passphrase=passphrase)