aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Coleman <ian@iancoleman.io>2018-05-30 11:32:43 +1000
committerIan Coleman <ian@iancoleman.io>2018-05-30 11:32:43 +1000
commit9369eaa6d56500061c952927691e31cd503ae11c (patch)
tree825948424494d60a67f033df09af257e57d7a447
parent4218c87458e07a2af23535103b7900159b83846e (diff)
downloadBIP39-9369eaa6d56500061c952927691e31cd503ae11c.tar.gz
BIP39-9369eaa6d56500061c952927691e31cd503ae11c.tar.zst
BIP39-9369eaa6d56500061c952927691e31cd503ae11c.zip
Add litecoin p2wpkh parameters
From electrum-ltc https://github.com/pooler/electrum-ltc/blob/48996679e198dab0839a2613289af8ba250b4f34/lib/constants.py
-rw-r--r--src/js/segwit-parameters.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/js/segwit-parameters.js b/src/js/segwit-parameters.js
index 2954b27..b4530d5 100644
--- a/src/js/segwit-parameters.js
+++ b/src/js/segwit-parameters.js
@@ -56,6 +56,19 @@ bitcoinjs.bitcoin.networks.testnet.p2wpkhInP2sh = {
56 wif: 0xef 56 wif: 0xef
57}; 57};
58 58
59bitcoinjs.bitcoin.networks.litecoin.p2wpkh = {
60 baseNetwork: "litecoin",
61 messagePrefix: '\x19Litecoin Signed Message:\n',
62 bech32: 'ltc',
63 bip32: {
64 public: 0x04b24746,
65 private: 0x04b2430c
66 },
67 pubKeyHash: 0x30,
68 scriptHash: 0x32,
69 wif: 0xb0
70};
71
59bitcoinjs.bitcoin.networks.litecoin.p2wpkhInP2sh = { 72bitcoinjs.bitcoin.networks.litecoin.p2wpkhInP2sh = {
60 baseNetwork: "litecoin", 73 baseNetwork: "litecoin",
61 messagePrefix: '\x19Litecoin Signed Message:\n', 74 messagePrefix: '\x19Litecoin Signed Message:\n',