1
0

tests: added 2fa seed case to test_wallet_vertical.py

This commit is contained in:
SomberNight
2018-01-04 22:21:05 +01:00
parent 99a08f35b2
commit 6d88eab005
2 changed files with 46 additions and 4 deletions

View File

@@ -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)