forgot prepere_seed

This commit is contained in:
ThomasV 2014-09-11 16:28:03 +02:00
parent 43513adb5c
commit fc861c035d
1 changed files with 1 additions and 0 deletions

View File

@ -62,6 +62,7 @@ class Mnemonic(object):
@classmethod @classmethod
def mnemonic_to_seed(self, mnemonic, passphrase): def mnemonic_to_seed(self, mnemonic, passphrase):
PBKDF2_ROUNDS = 2048 PBKDF2_ROUNDS = 2048
mnemonic = self.prepare_seed(mnemonic)
return pbkdf2.PBKDF2(mnemonic, 'mnemonic' + passphrase, iterations = PBKDF2_ROUNDS, macmodule = hmac, digestmodule = hashlib.sha512).read(64) return pbkdf2.PBKDF2(mnemonic, 'mnemonic' + passphrase, iterations = PBKDF2_ROUNDS, macmodule = hmac, digestmodule = hashlib.sha512).read(64)
@classmethod @classmethod