def __init__(self, transport, ask_for_pin_fun, ask_for_pass_fun,
              passphrase_encoding):
     keepkey_ProtocolMixin.__init__(self, transport, ask_for_pin_fun,
                                    ask_for_pass_fun, passphrase_encoding)
     MyKeepkeyTextUIMixin.__init__(self, transport, ask_for_pin_fun,
                                   ask_for_pass_fun, passphrase_encoding)
     keepkey_BaseClient.__init__(self, transport)
Esempio n. 2
0
 def clear_session(self):
     '''Clear the session to force pin (and passphrase if enabled)
     re-entry.  Does not leak exceptions.'''
     logger.debug("clear session: %s", self)
     self.prevent_timeouts()
     try:
         ProtocolMixin.clear_session(self)
     except Exception as e:
         # If the device was removed it has the same effect...
         logger.error("clear_session: ignoring error %s", e)
Esempio n. 3
0
 def __init__(self, transport, handler, plugin):
     BaseClient.__init__(self, transport)
     ProtocolMixin.__init__(self, transport)
     assert hasattr(self, 'tx_api')  # ProtocolMixin already constructed?
     self.proto = proto
     self.device = plugin.device
     self.handler = handler
     self.tx_api = plugin
     self.msg = None
     self.creating_wallet = False
     self.used()
Esempio n. 4
0
 def recovery_device(self, *args):
     ProtocolMixin.recovery_device(self, False, *args)
Esempio n. 5
0
 def get_public_node(self, address_n, creating):
     self.creating_wallet = creating
     return ProtocolMixin.get_public_node(self, address_n)
Esempio n. 6
0
 def recovery_device(self, *args):
     ProtocolMixin.recovery_device(self, False, *args)
Esempio n. 7
0
 def __init__(self, transport, handler, plugin):
     BaseClient.__init__(self, transport)
     ProtocolMixin.__init__(self, transport)
     KeepKeyClientBase.__init__(self, handler, plugin, proto)
Esempio n. 8
0
 def __init__(self, transport, handler, plugin):
     BaseClient.__init__(self, transport)
     ProtocolMixin.__init__(self, transport)
     KeepKeyClientBase.__init__(self, handler, plugin, proto)
Esempio n. 9
0
 def __init__(self, transport, handler, plugin, hid_id):
     BaseClient.__init__(self, transport)
     ProtocolMixin.__init__(self, transport)
     TrezorClientBase.__init__(self, handler, plugin, hid_id, proto)