1
0

Move BIP44 coin type to net constants.

This commit is contained in:
JeremyRand
2018-06-23 14:46:44 +00:00
parent 88d95123fb
commit d1d92e8704
2 changed files with 3 additions and 1 deletions

View File

@@ -716,7 +716,7 @@ is_bip32_key = lambda x: is_xprv(x) or is_xpub(x)
def bip44_derivation(account_id, bip43_purpose=44):
coin = 1 if constants.net.TESTNET else 0
coin = constants.net.BIP44_COIN_TYPE
return "m/%d'/%d'/%d'" % (bip43_purpose, coin, int(account_id))
def from_seed(seed, passphrase, is_p2sh):