commit fc861c035d3fca88cf163319ea822659f1f500cd
parent 43513adb5c6a68235ef426e9e6aa608ae334d8c7
Author: ThomasV <thomasv@gitorious>
Date: Thu, 11 Sep 2014 16:28:03 +0200
forgot prepere_seed
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/lib/mnemonic.py b/lib/mnemonic.py
@@ -62,6 +62,7 @@ class Mnemonic(object):
@classmethod
def mnemonic_to_seed(self, mnemonic, passphrase):
PBKDF2_ROUNDS = 2048
+ mnemonic = self.prepare_seed(mnemonic)
return pbkdf2.PBKDF2(mnemonic, 'mnemonic' + passphrase, iterations = PBKDF2_ROUNDS, macmodule = hmac, digestmodule = hashlib.sha512).read(64)
@classmethod