2018-07-25 20:07:39 +02:00
|
|
|
from electrum.plugin import hook
|
2025-04-10 10:13:24 +02:00
|
|
|
from electrum.hw_wallet import CmdLineHandler
|
|
|
|
|
|
2018-07-25 20:07:39 +02:00
|
|
|
from .safe_t import SafeTPlugin
|
|
|
|
|
|
|
|
|
|
class Plugin(SafeTPlugin):
|
|
|
|
|
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
|