NFKD (per bip39)
This commit is contained in:
parent
3a8b4d4258
commit
92ba934052
|
@ -54,7 +54,7 @@ class Mnemonic(object):
|
||||||
@classmethod
|
@classmethod
|
||||||
def prepare_seed(self, seed):
|
def prepare_seed(self, seed):
|
||||||
import unicodedata
|
import unicodedata
|
||||||
return unicodedata.normalize('NFC', unicode(seed.strip()))
|
return unicodedata.normalize('NFKD', unicode(seed.strip()))
|
||||||
|
|
||||||
def mnemonic_encode(self, i):
|
def mnemonic_encode(self, i):
|
||||||
n = len(self.wordlist)
|
n = len(self.wordlist)
|
||||||
|
|
Loading…
Reference in New Issue