aboutsummaryrefslogtreecommitdiff
path: root/src/js/segwit-parameters.js
diff options
context:
space:
mode:
authoriancoleman <1281387+iancoleman@users.noreply.github.com>2018-03-27 10:22:07 +1100
committerGitHub <noreply@github.com>2018-03-27 10:22:07 +1100
commit27fa3201259657954f0699ef2acf731f18b5fdbf (patch)
tree8bec3e77c4e8ee831a4936c02cd627ab31ebb0b7 /src/js/segwit-parameters.js
parentdfbb5a65ff30602e48ae3d928aada6940ac1c9aa (diff)
parent206a27352d1bf4ab576043fea64ac317815f0e6b (diff)
downloadBIP39-27fa3201259657954f0699ef2acf731f18b5fdbf.tar.gz
BIP39-27fa3201259657954f0699ef2acf731f18b5fdbf.tar.zst
BIP39-27fa3201259657954f0699ef2acf731f18b5fdbf.zip
Merge pull request #188 from dalitsairio/master
Add network testnet.p2wpkh
Diffstat (limited to 'src/js/segwit-parameters.js')
-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 = {