electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

cmdline.py (396B)


      1 from electrum.plugin import hook
      2 from .safe_t import SafeTPlugin
      3 from ..hw_wallet import CmdLineHandler
      4 
      5 class Plugin(SafeTPlugin):
      6     handler = CmdLineHandler()
      7     @hook
      8     def init_keystore(self, keystore):
      9         if not isinstance(keystore, self.keystore_class):
     10             return
     11         keystore.handler = self.handler
     12 
     13     def create_handler(self, window):
     14         return self.handler