From a154b9c2b6b8a2014a9d85d04e2b4704cd1c55de Mon Sep 17 00:00:00 2001 From: zebra-lucky Date: Sat, 10 Mar 2018 22:28:58 +0200 Subject: [PATCH] change bip44 coin constant to 133 (Zcash) --- lib/keystore.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/keystore.py b/lib/keystore.py index cfae5218..67363273 100644 --- a/lib/keystore.py +++ b/lib/keystore.py @@ -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):