aboutsummaryrefslogtreecommitdiff
path: root/src/js
diff options
context:
space:
mode:
authorPawel Cioch <pawel@greenhex.net>2019-02-20 10:41:11 -0600
committerPawel Cioch <pawel@greenhex.net>2019-02-20 10:41:11 -0600
commitf22f7677a6070e2cbb5aa6d1bf0f672c95083ed4 (patch)
tree3bf9a6a7f70984f081ed7020aea51baa5e3ad296 /src/js
parent497fcf0e4863138ecdad1b13c9d204310a2598a6 (diff)
downloadBIP39-f22f7677a6070e2cbb5aa6d1bf0f672c95083ed4.tar.gz
BIP39-f22f7677a6070e2cbb5aa6d1bf0f672c95083ed4.tar.zst
BIP39-f22f7677a6070e2cbb5aa6d1bf0f672c95083ed4.zip
Added BST - BlockStamp
Diffstat (limited to 'src/js')
-rw-r--r--src/js/bitcoinjs-extensions.js11
-rw-r--r--src/js/index.js7
-rw-r--r--src/js/segwit-parameters.js27
3 files changed, 45 insertions, 0 deletions
diff --git a/src/js/bitcoinjs-extensions.js b/src/js/bitcoinjs-extensions.js
index b20d6df..ead1660 100644
--- a/src/js/bitcoinjs-extensions.js
+++ b/src/js/bitcoinjs-extensions.js
@@ -1485,4 +1485,15 @@ bitcoinjs.bitcoin.networks.litecoinz = {
1485 pubKeyHash: 0x0AB3, 1485 pubKeyHash: 0x0AB3,
1486 scriptHash: 0x0AB8, 1486 scriptHash: 0x0AB8,
1487 wif: 0x80, 1487 wif: 0x80,
1488};
1489
1490bitcoinjs.bitcoin.networks.blockstamp = {
1491 messagePrefix: '\x18BlockStamp Signed Message:\n',
1492 bip32: {
1493 public: 0x0488B21E,
1494 private: 0x0488ADE4,
1495 },
1496 pubKeyHash: 0x00,
1497 scriptHash: 0x05,
1498 wif: 0x80,
1488}; \ No newline at end of file 1499}; \ No newline at end of file
diff --git a/src/js/index.js b/src/js/index.js
index cbe0255..affcc61 100644
--- a/src/js/index.js
+++ b/src/js/index.js
@@ -1730,6 +1730,13 @@
1730 setHdCoin(91); 1730 setHdCoin(91);
1731 }, 1731 },
1732 }, 1732 },
1733 {
1734 name: "BST - BlockStamp",
1735 onSelect: function() {
1736 network = bitcoinjs.bitcoin.networks.blockstamp;
1737 setHdCoin(254);
1738 },
1739 },
1733 { 1740 {
1734 name: "BTA - Bata", 1741 name: "BTA - Bata",
1735 onSelect: function() { 1742 onSelect: function() {
diff --git a/src/js/segwit-parameters.js b/src/js/segwit-parameters.js
index f7f9220..14b5569 100644
--- a/src/js/segwit-parameters.js
+++ b/src/js/segwit-parameters.js
@@ -184,6 +184,33 @@ bitcoinjs.bitcoin.networks.digibyte.p2wpkhInP2sh = {
184 scriptHash: 0x3f, 184 scriptHash: 0x3f,
185 wif: 0x80 185 wif: 0x80
186}; 186};
187
188bitcoinjs.bitcoin.networks.blockstamp.p2wpkh = {
189 baseNetwork: "blockstamp",
190 messagePrefix: '\x18BlockStamp Signed Message:\n',
191 bech32: 'bc',
192 bip32: {
193 public: 0x0488B21E,
194 private: 0x0488ADE4,
195 },
196 pubKeyHash: 0x00,
197 scriptHash: 0x05,
198 wif: 0x80,
199};
200
201bitcoinjs.bitcoin.networks.blockstamp.p2wpkhInP2sh = {
202 baseNetwork: "blockstamp",
203 messagePrefix: '\x18BlockStamp Signed Message:\n',
204 bech32: 'bc',
205 bip32: {
206 public: 0x0488B21E,
207 private: 0x0488ADE4,
208 },
209 pubKeyHash: 0x00,
210 scriptHash: 0x05,
211 wif: 0x80,
212};
213
187// bitcoinjs.bitcoin.networks.deimos.p2wpkh = { 214// bitcoinjs.bitcoin.networks.deimos.p2wpkh = {
188// baseNetwork: "deimos", 215// baseNetwork: "deimos",
189// messagePrefix: '\x18Deimos Signed Message:\n', 216// messagePrefix: '\x18Deimos Signed Message:\n',