diff options
-rw-r--r-- | src/js/bitcoinjs-extensions.js | 11 | ||||
-rw-r--r-- | src/js/index.js | 7 | ||||
-rw-r--r-- | src/js/segwit-parameters.js | 27 | ||||
-rw-r--r-- | tests/spec/tests.js | 7 |
4 files changed, 52 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 | |||
1490 | bitcoinjs.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 | |||
188 | bitcoinjs.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 | |||
201 | bitcoinjs.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', |
diff --git a/tests/spec/tests.js b/tests/spec/tests.js index 6718a0e..dcc9b0a 100644 --- a/tests/spec/tests.js +++ b/tests/spec/tests.js | |||
@@ -1390,6 +1390,13 @@ it('Allows selection of LitecoinZ', function(done) { | |||
1390 | }; | 1390 | }; |
1391 | testNetwork(done, params); | 1391 | testNetwork(done, params); |
1392 | }); | 1392 | }); |
1393 | it('Allows selection of BlockStamp', function(done) { | ||
1394 | var params = { | ||
1395 | selectText: "BST - BlockStamp", | ||
1396 | firstAddress: "15gypKtim4cVTj137ApfryG17RkvSbPazZ", | ||
1397 | }; | ||
1398 | testNetwork(done, params); | ||
1399 | }); | ||
1393 | 1400 | ||
1394 | // BIP39 seed is set from phrase | 1401 | // BIP39 seed is set from phrase |
1395 | it('Sets the bip39 seed from the prhase', function(done) { | 1402 | it('Sets the bip39 seed from the prhase', function(done) { |