aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDalit Sairio <dalit.sairio@protonmail.com>2018-03-25 22:28:25 +0200
committerDalit Sairio <dalit.sairio@protonmail.com>2018-03-25 22:28:25 +0200
commit206a27352d1bf4ab576043fea64ac317815f0e6b (patch)
treef6db79da737ba9ea4c0a560bb5b2af94479a9e17 /src
parentb777ff554de2075015e7df0108e33808005b99e9 (diff)
downloadBIP39-206a27352d1bf4ab576043fea64ac317815f0e6b.tar.gz
BIP39-206a27352d1bf4ab576043fea64ac317815f0e6b.tar.zst
BIP39-206a27352d1bf4ab576043fea64ac317815f0e6b.zip
Add network testnet.p2wpkh
Diffstat (limited to 'src')
-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 38cf9e0..b919d45 100644
--- a/src/js/segwit-parameters.js
+++ b/src/js/segwit-parameters.js
@@ -15,6 +15,19 @@ bitcoinjs.bitcoin.networks.bitcoin.p2wpkh = {
15 wif: 0x80 15 wif: 0x80
16}; 16};
17 17
18bitcoinjs.bitcoin.networks.testnet.p2wpkh = {
19 baseNetwork: "testnet",
20 messagePrefix: '\x18Bitcoin Signed Message:\n',
21 bech32: 'tb',
22 bip32: {
23 public: 0x045f1cf6,
24 private: 0x045f18bc
25 },
26 pubKeyHash: 0x6f,
27 scriptHash: 0xc4,
28 wif: 0xef
29};
30
18// p2wpkh in p2sh 31// p2wpkh in p2sh
19 32
20bitcoinjs.bitcoin.networks.bitcoin.p2wpkhInP2sh = { 33bitcoinjs.bitcoin.networks.bitcoin.p2wpkhInP2sh = {