1
0

drop support for multiple accounts (bip44) in standard wallets

This commit is contained in:
ThomasV
2015-01-05 00:33:10 +01:00
parent 084a2f60ae
commit da968b60e4
5 changed files with 20 additions and 13 deletions

View File

@@ -749,9 +749,11 @@ def bip32_root(seed, testnet=False):
def bip32_private_derivation(xprv, branch, sequence, testnet=False):
assert sequence.startswith(branch)
if branch == sequence:
return xprv, xpub_from_xprv(xprv, testnet)
header_pub, header_priv = _get_headers(testnet)
depth, fingerprint, child_number, c, k = deserialize_xkey(xprv)
assert sequence.startswith(branch)
sequence = sequence[len(branch):]
for n in sequence.split('/'):
if n == '': continue