electrum-bitcoinprivate/plugins/trezor/cmdline.py

15 lines
408 B
Python
Raw Normal View History

2019-02-28 13:26:15 -08:00
from electrum_zclassic.plugins import hook
2017-08-27 20:30:56 -07:00
from .trezor import TrezorPlugin
from ..hw_wallet import CmdLineHandler
2015-12-01 03:00:18 -08:00
class Plugin(TrezorPlugin):
handler = CmdLineHandler()
@hook
def init_keystore(self, keystore):
if not isinstance(keystore, self.keystore_class):
return
keystore.handler = self.handler
def create_handler(self, window):
return self.handler