Browse Source

forgot prepere_seed

283
ThomasV 10 years ago
parent
commit
fc861c035d
  1. 1
      lib/mnemonic.py

1
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

Loading…
Cancel
Save