From 9369eaa6d56500061c952927691e31cd503ae11c Mon Sep 17 00:00:00 2001 From: Ian Coleman Date: Wed, 30 May 2018 11:32:43 +1000 Subject: Add litecoin p2wpkh parameters From electrum-ltc https://github.com/pooler/electrum-ltc/blob/48996679e198dab0839a2613289af8ba250b4f34/lib/constants.py --- src/js/segwit-parameters.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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 = { wif: 0xef }; +bitcoinjs.bitcoin.networks.litecoin.p2wpkh = { + baseNetwork: "litecoin", + messagePrefix: '\x19Litecoin Signed Message:\n', + bech32: 'ltc', + bip32: { + public: 0x04b24746, + private: 0x04b2430c + }, + pubKeyHash: 0x30, + scriptHash: 0x32, + wif: 0xb0 +}; + bitcoinjs.bitcoin.networks.litecoin.p2wpkhInP2sh = { baseNetwork: "litecoin", messagePrefix: '\x19Litecoin Signed Message:\n', -- cgit v1.2.3