tests: added 2fa seed case to test_wallet_vertical.py
This commit is contained in:
@@ -388,6 +388,7 @@ class TrustedCoinPlugin(BasePlugin):
|
||||
f = lambda x: wizard.request_passphrase(seed, x)
|
||||
wizard.show_seed_dialog(run_next=f, seed_text=seed)
|
||||
|
||||
@classmethod
|
||||
def get_xkeys(self, seed, passphrase, derivation):
|
||||
from electrum.mnemonic import Mnemonic
|
||||
from electrum.keystore import bip32_root, bip32_private_derivation
|
||||
@@ -396,6 +397,7 @@ class TrustedCoinPlugin(BasePlugin):
|
||||
xprv, xpub = bip32_private_derivation(xprv, "m/", derivation)
|
||||
return xprv, xpub
|
||||
|
||||
@classmethod
|
||||
def xkeys_from_seed(self, seed, passphrase):
|
||||
words = seed.split()
|
||||
n = len(words)
|
||||
|
||||
Reference in New Issue
Block a user