2017-12-06 15:27:25 -08:00
|
|
|
from electrum.plugins import hook
|
2017-08-27 20:30:56 -07:00
|
|
|
from .digitalbitbox import DigitalBitboxPlugin
|
2017-10-19 02:59:36 -07:00
|
|
|
from ..hw_wallet import CmdLineHandler
|
2016-12-28 13:49:09 -08:00
|
|
|
|
|
|
|
class Plugin(DigitalBitboxPlugin):
|
2017-10-19 02:59:36 -07:00
|
|
|
handler = CmdLineHandler()
|
|
|
|
@hook
|
|
|
|
def init_keystore(self, keystore):
|
|
|
|
if not isinstance(keystore, self.keystore_class):
|
|
|
|
return
|
|
|
|
keystore.handler = self.handler
|