1
0

old seeds: normalize, and stricter is_old_seed()

This commit is contained in:
SomberNight
2017-10-29 15:49:29 +01:00
parent 9a0082248b
commit d45e13553a
3 changed files with 35 additions and 7 deletions

View File

@@ -355,9 +355,9 @@ class Old_KeyStore(Deterministic_KeyStore):
self.mpk = mpk
def format_seed(self, seed):
from . import old_mnemonic
from . import old_mnemonic, mnemonic
seed = mnemonic.normalize_text(seed)
# see if seed was entered as hex
seed = seed.strip()
if seed:
try:
bfh(seed)