commit b854c3e173d0de18469addb97767ff614e2af202
parent 26ee3baaba8b408f99e7e53a6bdd2f9b1c57b3ed
Author: ThomasV <thomasv@gitorious>
Date: Fri, 12 Sep 2014 16:48:24 +0200
lower seedphrase
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/lib/mnemonic.py b/lib/mnemonic.py
@@ -69,6 +69,8 @@ class Mnemonic(object):
def prepare_seed(self, seed):
# normalize
seed = unicodedata.normalize('NFKD', unicode(seed))
+ # lower
+ seed = seed.lower()
# remove accents and whitespaces
seed = u''.join([c for c in seed if not unicodedata.combining(c) and not c in string.whitespace])
return seed