lower seedphrase

This commit is contained in:
ThomasV 2014-09-12 16:48:24 +02:00
parent 26ee3baaba
commit b854c3e173

View file

@ -69,6 +69,8 @@ class Mnemonic(object):
def prepare_seed(self, seed): def prepare_seed(self, seed):
# normalize # normalize
seed = unicodedata.normalize('NFKD', unicode(seed)) seed = unicodedata.normalize('NFKD', unicode(seed))
# lower
seed = seed.lower()
# remove accents and whitespaces # remove accents and whitespaces
seed = u''.join([c for c in seed if not unicodedata.combining(c) and not c in string.whitespace]) seed = u''.join([c for c in seed if not unicodedata.combining(c) and not c in string.whitespace])
return seed return seed