Browse Source
wizard: on adding bip39/hw ks, don't offer path scanning for multisig
follow-up #6219
for multisig, it's just confusing and useless as-is
patch-4
SomberNight
4 years ago
No known key found for this signature in database
GPG Key ID: B33B5F232C6271E9
1 changed files with
9 additions and
6 deletions
-
electrum/base_wizard.py
|
|
@ -510,12 +510,15 @@ class BaseWizard(Logger): |
|
|
|
def f(derivation, script_type): |
|
|
|
derivation = normalize_bip32_derivation(derivation) |
|
|
|
self.run('on_bip43', seed, passphrase, derivation, script_type) |
|
|
|
def get_account_xpub(account_path): |
|
|
|
root_seed = bip39_to_seed(seed, passphrase) |
|
|
|
root_node = BIP32Node.from_rootseed(root_seed, xtype="standard") |
|
|
|
account_node = root_node.subkey_at_private_derivation(account_path) |
|
|
|
account_xpub = account_node.to_xpub() |
|
|
|
return account_xpub |
|
|
|
if self.wallet_type == 'standard': |
|
|
|
def get_account_xpub(account_path): |
|
|
|
root_seed = bip39_to_seed(seed, passphrase) |
|
|
|
root_node = BIP32Node.from_rootseed(root_seed, xtype="standard") |
|
|
|
account_node = root_node.subkey_at_private_derivation(account_path) |
|
|
|
account_xpub = account_node.to_xpub() |
|
|
|
return account_xpub |
|
|
|
else: |
|
|
|
get_account_xpub = None |
|
|
|
self.derivation_and_script_type_dialog(f, get_account_xpub=get_account_xpub) |
|
|
|
|
|
|
|
def create_keystore(self, seed, passphrase): |
|
|
|