allow encrypting watch-only wallets. initial support for hw wallet storage encryption.
This commit is contained in:
@@ -12,7 +12,7 @@ try:
|
||||
from electrum.keystore import Hardware_KeyStore
|
||||
from ..hw_wallet import HW_PluginBase
|
||||
from electrum.util import print_error, to_string, UserCancelled
|
||||
from electrum.base_wizard import ScriptTypeNotSupported
|
||||
from electrum.base_wizard import ScriptTypeNotSupported, HWD_SETUP_NEW_WALLET
|
||||
|
||||
import time
|
||||
import hid
|
||||
@@ -670,12 +670,13 @@ class DigitalBitboxPlugin(HW_PluginBase):
|
||||
return None
|
||||
|
||||
|
||||
def setup_device(self, device_info, wizard):
|
||||
def setup_device(self, device_info, wizard, purpose):
|
||||
devmgr = self.device_manager()
|
||||
device_id = device_info.device.id_
|
||||
client = devmgr.client_by_id(device_id)
|
||||
client.handler = self.create_handler(wizard)
|
||||
client.setupRunning = True
|
||||
if purpose == HWD_SETUP_NEW_WALLET:
|
||||
client.setupRunning = True
|
||||
client.get_xpub("m/44'/0'", 'standard')
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user