|
@ -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) |
|
|