diff options
author | Ian Coleman <ian@iancoleman.io> | 2018-05-30 11:32:43 +1000 |
---|---|---|
committer | Ian Coleman <ian@iancoleman.io> | 2018-05-30 11:32:43 +1000 |
commit | 9369eaa6d56500061c952927691e31cd503ae11c (patch) | |
tree | 825948424494d60a67f033df09af257e57d7a447 | |
parent | 4218c87458e07a2af23535103b7900159b83846e (diff) | |
download | BIP39-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.js | 13 |
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 | ||
59 | bitcoinjs.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 | |||
59 | bitcoinjs.bitcoin.networks.litecoin.p2wpkhInP2sh = { | 72 | bitcoinjs.bitcoin.networks.litecoin.p2wpkhInP2sh = { |
60 | baseNetwork: "litecoin", | 73 | baseNetwork: "litecoin", |
61 | messagePrefix: '\x19Litecoin Signed Message:\n', | 74 | messagePrefix: '\x19Litecoin Signed Message:\n', |