Browse Source

lower seedphrase

283
ThomasV 10 years ago
parent
commit
b854c3e173
  1. 2
      lib/mnemonic.py

2
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

Loading…
Cancel
Save