change bip44 coin constant to 133 (Zcash)

This commit is contained in:
zebra-lucky 2018-03-10 22:28:58 +02:00
parent f7be1a03f9
commit a154b9c2b6
1 changed files with 3 additions and 3 deletions

View File

@ -671,9 +671,9 @@ 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, segwit=False):
bip = 49 if segwit else 44
coin = 1 if bitcoin.NetworkConstants.TESTNET else 0
def bip44_derivation(account_id):
bip = 44
coin = 1 if bitcoin.NetworkConstants.TESTNET else 133
return "m/%d'/%d'/%d'" % (bip, coin, int(account_id))
def from_seed(seed, passphrase, is_p2sh):