From: Dalit Sairio Date: Sun, 25 Mar 2018 20:28:25 +0000 (+0200) Subject: Add network testnet.p2wpkh X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;ds=sidebyside;h=206a27352d1bf4ab576043fea64ac317815f0e6b;p=perso%2FImmae%2FProjets%2FCryptomonnaies%2FBIP39.git Add network testnet.p2wpkh --- diff --git a/src/js/segwit-parameters.js b/src/js/segwit-parameters.js index 38cf9e0..b919d45 100644 --- a/src/js/segwit-parameters.js +++ b/src/js/segwit-parameters.js @@ -15,6 +15,19 @@ bitcoinjs.bitcoin.networks.bitcoin.p2wpkh = { wif: 0x80 }; +bitcoinjs.bitcoin.networks.testnet.p2wpkh = { + baseNetwork: "testnet", + messagePrefix: '\x18Bitcoin Signed Message:\n', + bech32: 'tb', + bip32: { + public: 0x045f1cf6, + private: 0x045f18bc + }, + pubKeyHash: 0x6f, + scriptHash: 0xc4, + wif: 0xef +}; + // p2wpkh in p2sh bitcoinjs.bitcoin.networks.bitcoin.p2wpkhInP2sh = {