mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-27 23:41:35 +00:00
lower seedphrase
This commit is contained in:
parent
26ee3baaba
commit
b854c3e173
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue