Files
pallectrum/plugins/trezor/cmdline.py

12 lines
332 B
Python
Raw Normal View History

from electrum.plugins import hook
2017-08-28 05:30:56 +02:00
from .trezor import TrezorPlugin
from ..hw_wallet import CmdLineHandler
2015-12-01 12:00:18 +01:00
class Plugin(TrezorPlugin):
handler = CmdLineHandler()
@hook
def init_keystore(self, keystore):
if not isinstance(keystore, self.keystore_class):
return
keystore.handler = self.handler