aboutsummaryrefslogtreecommitdiff
path: root/src/js/segwit-parameters.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/js/segwit-parameters.js')
-rw-r--r--src/js/segwit-parameters.js52
1 files changed, 52 insertions, 0 deletions
diff --git a/src/js/segwit-parameters.js b/src/js/segwit-parameters.js
index 83d49da..9641d71 100644
--- a/src/js/segwit-parameters.js
+++ b/src/js/segwit-parameters.js
@@ -28,6 +28,19 @@ bitcoinjs.bitcoin.networks.testnet.p2wpkh = {
28 wif: 0xef 28 wif: 0xef
29}; 29};
30 30
31bitcoinjs.bitcoin.networks.regtest.p2wpkh = {
32 baseNetwork: "regtest",
33 messagePrefix: '\x18Bitcoin Signed Message:\n',
34 bech32: 'bcrt',
35 bip32: {
36 public: 0x045f1cf6,
37 private: 0x045f18bc
38 },
39 pubKeyHash: 0x6f,
40 scriptHash: 0xc4,
41 wif: 0xef
42};
43
31// p2wpkh in p2sh 44// p2wpkh in p2sh
32 45
33bitcoinjs.bitcoin.networks.bitcoin.p2wpkhInP2sh = { 46bitcoinjs.bitcoin.networks.bitcoin.p2wpkhInP2sh = {
@@ -56,6 +69,19 @@ bitcoinjs.bitcoin.networks.testnet.p2wpkhInP2sh = {
56 wif: 0xef 69 wif: 0xef
57}; 70};
58 71
72bitcoinjs.bitcoin.networks.regtest.p2wpkhInP2sh = {
73 baseNetwork: "regtest",
74 messagePrefix: '\x18Bitcoin Signed Message:\n',
75 bech32: 'bcrt',
76 bip32: {
77 public: 0x044a5262,
78 private: 0x044a4e28
79 },
80 pubKeyHash: 0x6f,
81 scriptHash: 0xc4,
82 wif: 0xef
83};
84
59// p2wsh 85// p2wsh
60 86
61bitcoinjs.bitcoin.networks.bitcoin.p2wsh = { 87bitcoinjs.bitcoin.networks.bitcoin.p2wsh = {
@@ -84,6 +110,19 @@ bitcoinjs.bitcoin.networks.testnet.p2wsh = {
84 wif: 0xef 110 wif: 0xef
85}; 111};
86 112
113bitcoinjs.bitcoin.networks.regtest.p2wsh = {
114 baseNetwork: "regtest",
115 messagePrefix: '\x18Bitcoin Signed Message:\n',
116 bech32: 'bcrt',
117 bip32: {
118 public: 0x02575483,
119 private: 0x02575048
120 },
121 pubKeyHash: 0x6f,
122 scriptHash: 0xc4,
123 wif: 0xef
124};
125
87// p2wsh in p2sh 126// p2wsh in p2sh
88 127
89bitcoinjs.bitcoin.networks.bitcoin.p2wshInP2sh = { 128bitcoinjs.bitcoin.networks.bitcoin.p2wshInP2sh = {
@@ -112,6 +151,19 @@ bitcoinjs.bitcoin.networks.testnet.p2wshInP2sh = {
112 wif: 0xef 151 wif: 0xef
113}; 152};
114 153
154bitcoinjs.bitcoin.networks.regtest.p2wshInP2sh = {
155 baseNetwork: "regtest",
156 messagePrefix: '\x18Bitcoin Signed Message:\n',
157 bech32: 'bcrt',
158 bip32: {
159 public: 0x024289ef,
160 private: 0x024285b5
161 },
162 pubKeyHash: 0x6f,
163 scriptHash: 0xc4,
164 wif: 0xef
165};
166
115bitcoinjs.bitcoin.networks.litecoin.p2wpkh = { 167bitcoinjs.bitcoin.networks.litecoin.p2wpkh = {
116 baseNetwork: "litecoin", 168 baseNetwork: "litecoin",
117 messagePrefix: '\x19Litecoin Signed Message:\n', 169 messagePrefix: '\x19Litecoin Signed Message:\n',