コード例 #1
0
ファイル: plugin.py プロジェクト: zebbra2014/electrum-ltc
 def __init__(self, storage):
     BIP44_Wallet.__init__(self, storage)
     # After timeout seconds we clear the device session
     self.session_timeout = storage.get('session_timeout', 180)
     # Errors and other user interaction is done through the wallet's
     # handler.  The handler is per-window and preserved across
     # device reconnects
     self.handler = None
     self.force_watching_only = True
コード例 #2
0
ファイル: ledger.py プロジェクト: zebbra2014/electrum-ltc
    def __init__(self, storage):
        BIP44_Wallet.__init__(self, storage)
        # Errors and other user interaction is done through the wallet's
        # handler.  The handler is per-window and preserved across
        # device reconnects
        self.handler = None
        self.force_watching_only = False

        self.device_checked = False
        self.signing = False
コード例 #3
0
ファイル: qt_generic.py プロジェクト: zebbra2014/electrum-ltc
 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()
コード例 #4
0
ファイル: clientbase.py プロジェクト: Andymeows/electrum-doge
 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 litecoins 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)
コード例 #5
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 litecoins 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)
コード例 #6
0
ファイル: hw_wallet.py プロジェクト: Andymeows/electrum-doge
 def __init__(self, storage):
     BIP44_Wallet.__init__(self, storage)
     # Errors and other user interaction is done through the wallet's
     # handler.  The handler is per-window and preserved across
     # device reconnects
     self.handler = None
コード例 #7
0
ファイル: ledger.py プロジェクト: zebbra2014/electrum-ltc
 def address_id(self, address):
     # Strip the leading "m/"
     return BIP44_Wallet.address_id(self, address)[2:]
コード例 #8
0
ファイル: hw_wallet.py プロジェクト: BigUps/electrum-ltc
 def __init__(self, storage):
     BIP44_Wallet.__init__(self, storage)
     # Errors and other user interaction is done through the wallet's
     # handler.  The handler is per-window and preserved across
     # device reconnects
     self.handler = None