1
0
This commit is contained in:
ThomasV
2017-09-24 10:18:08 +02:00
parent 4c22698444
commit 2239cb9624
2 changed files with 12 additions and 10 deletions

View File

@@ -973,9 +973,3 @@ def bip32_private_key(sequence, k, chain):
k, chain = CKD_priv(k, chain, i)
return SecretToASecret(k, True)
def xkeys_from_seed(seed, passphrase, derivation):
from .mnemonic import Mnemonic
xprv, xpub = bip32_root(Mnemonic.mnemonic_to_seed(seed, passphrase), 0)
xprv, xpub = bip32_private_derivation(xprv, "m/", derivation)
return xprv, xpub