1
0

slip39: follow-ups

- fix kivy wizard restore-from-seed
- qt seed dialog: disable "next share" if current share is invalid
- fix tests: file paths should not depend on $PWD (working dir)
This commit is contained in:
SomberNight
2021-06-22 19:14:47 +02:00
parent 2de82a2fd6
commit 60e0cd65cf
4 changed files with 12 additions and 4 deletions

View File

@@ -1,5 +1,6 @@
from typing import NamedTuple, Optional
import json
import os
from electrum import keystore
from electrum import mnemonic
@@ -197,7 +198,8 @@ class Test_slip39(ElectrumTestCase):
""" Test SLIP39 test vectors. """
def test_slip39_vectors(self):
with open("slip39-vectors.json", "r") as f:
test_vector_file = os.path.join(os.path.dirname(__file__), "slip39-vectors.json")
with open(test_vector_file, "r") as f:
vectors = json.load(f)
for description, mnemonics, expected_secret in vectors:
if expected_secret: