From 92ba93405256f549cdbb58858957b8e69e488fc4 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Tue, 2 Sep 2014 15:21:17 +0200 Subject: [PATCH] NFKD (per bip39) --- lib/mnemonic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mnemonic.py b/lib/mnemonic.py index 6c10f1e2d..33b2d628d 100644 --- a/lib/mnemonic.py +++ b/lib/mnemonic.py @@ -54,7 +54,7 @@ class Mnemonic(object): @classmethod def prepare_seed(self, seed): import unicodedata - return unicodedata.normalize('NFC', unicode(seed.strip())) + return unicodedata.normalize('NFKD', unicode(seed.strip())) def mnemonic_encode(self, i): n = len(self.wordlist)