1
0

Testnet: Use correct BIP44 derivation

This commit is contained in:
Saleem Rashid
2017-03-13 19:23:29 +00:00
parent 024de7afa5
commit 9d6f816b15
2 changed files with 6 additions and 3 deletions

View File

@@ -650,7 +650,10 @@ is_private_key = lambda x: is_xprv(x) or is_private_key_list(x)
is_bip32_key = lambda x: is_xprv(x) or is_xpub(x)
def bip44_derivation(account_id):
return "m/44'/0'/%d'"% int(account_id)
if TESTNET:
return "m/44'/1'/%d'"% int(account_id)
else:
return "m/44'/0'/%d'"% int(account_id)
def from_seed(seed, passphrase):
t = seed_type(seed)