From b3f3fdeb1d30b24384a2e997883a1a44c4bd650c Mon Sep 17 00:00:00 2001 From: Lex Berezhny Date: Tue, 18 Sep 2018 23:06:56 -0400 Subject: [PATCH] explicit import of english words --- torba/mnemonic.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/torba/mnemonic.py b/torba/mnemonic.py index 789221367..c207bbab9 100644 --- a/torba/mnemonic.py +++ b/torba/mnemonic.py @@ -13,6 +13,7 @@ import ecdsa import pbkdf2 from torba.hash import hmac_sha512 +from torba.words import english # The hash of the mnemonic seed must begin with this SEED_PREFIX = b'01' # Standard wallet @@ -77,6 +78,8 @@ def normalize_text(seed): def load_words(language_name): + if language_name == 'english': + return english.words language_module = importlib.import_module('torba.words.'+language_name) return list(map( lambda s: unicodedata.normalize('NFKD', s),