forgot prepere_seed
This commit is contained in:
parent
43513adb5c
commit
fc861c035d
|
@ -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…
Reference in New Issue