aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/js/bitcoinjs-extensions.js22
-rw-r--r--src/js/index.js14
-rw-r--r--src/js/segwit-parameters.js25
-rw-r--r--tests/spec/tests.js16
4 files changed, 76 insertions, 1 deletions
diff --git a/src/js/bitcoinjs-extensions.js b/src/js/bitcoinjs-extensions.js
index d1073aa..5ba584e 100644
--- a/src/js/bitcoinjs-extensions.js
+++ b/src/js/bitcoinjs-extensions.js
@@ -1441,3 +1441,25 @@ bitcoinjs.bitcoin.networks.phore = {
1441 scriptHash: 0x0D, 1441 scriptHash: 0x0D,
1442 wif: 0xD4, 1442 wif: 0xD4,
1443}; 1443};
1444
1445bitcoinjs.bitcoin.networks.blocknode = {
1446 messagePrefix: '\x18Blocknode Signed Message:\n',
1447 bip32: {
1448 public: 0x0488b21e,
1449 private: 0x0488ade4
1450 },
1451 pubKeyHash: 0x19,
1452 scriptHash: 0x3F,
1453 wif: 0x4b,
1454};
1455
1456bitcoinjs.bitcoin.networks.blocknode_testnet = {
1457 messagePrefix: '\x18Blocknode Testnet Signed Message:\n',
1458 bip32: {
1459 public: 0x043587cf,
1460 private: 0x04358394
1461 },
1462 pubKeyHash: 0x55,
1463 scriptHash: 0x7d,
1464 wif: 0x89,
1465}; \ No newline at end of file
diff --git a/src/js/index.js b/src/js/index.js
index 6b292f5..8322115 100644
--- a/src/js/index.js
+++ b/src/js/index.js
@@ -1703,6 +1703,20 @@
1703 }, 1703 },
1704 }, 1704 },
1705 { 1705 {
1706 name: "BND - Blocknode",
1707 onSelect: function() {
1708 network = bitcoinjs.bitcoin.networks.blocknode;
1709 setHdCoin(2941);
1710 },
1711 },
1712 {
1713 name: "tBND - Blocknode Testnet",
1714 onSelect: function() {
1715 network = bitcoinjs.bitcoin.networks.blocknode_testnet;
1716 setHdCoin(1);
1717 },
1718 },
1719 {
1706 name: "BRIT - Britcoin", 1720 name: "BRIT - Britcoin",
1707 onSelect: function() { 1721 onSelect: function() {
1708 network = bitcoinjs.bitcoin.networks.britcoin; 1722 network = bitcoinjs.bitcoin.networks.britcoin;
diff --git a/src/js/segwit-parameters.js b/src/js/segwit-parameters.js
index dbb7572..8a3557e 100644
--- a/src/js/segwit-parameters.js
+++ b/src/js/segwit-parameters.js
@@ -184,4 +184,29 @@ bitcoinjs.bitcoin.networks.digibyte.p2wpkhInP2sh = {
184 scriptHash: 0x3f, 184 scriptHash: 0x3f,
185 wif: 0x80 185 wif: 0x80
186}; 186};
187 bitcoinjs.bitcoin.networks.deimos.p2wpkh = {
188 baseNetwork: "deimos",
189 messagePrefix: '\x18Deimos Signed Message:\n',
190 bech32: 'dei',
191 bip32: {
192 public: 0x0488B21E,
193 private: 0x0488ADE4
194 },
195 pubKeyHash: 0x1f,
196 scriptHash: 0x21,
197 wif: 0x8a
198};
199
200bitcoinjs.bitcoin.networks.deimos.p2wpkhInP2sh = {
201 baseNetwork: "deimos",
202 messagePrefix: '\x18Deimos Signed Message:\n',
203 bech32: 'dei',
204 bip32: {
205 public: 0x0488B21E,
206 private: 0x0488ADE4
207 },
208 pubKeyHash: 0x1f,
209 scriptHash: 0x21,
210 wif: 0x8a
211};
187})(); 212})();
diff --git a/tests/spec/tests.js b/tests/spec/tests.js
index 58662fd..0bb56f8 100644
--- a/tests/spec/tests.js
+++ b/tests/spec/tests.js
@@ -1362,7 +1362,21 @@ it('Allows selection of Safecoin', function(done) {
1362 }; 1362 };
1363 testNetwork(done, params); 1363 testNetwork(done, params);
1364 }); 1364 });
1365 1365it('Allows selection of Blocknode', function(done) {
1366 var params = {
1367 selectText: "BND - Blocknode",
1368 firstAddress: "BG8xZSAur2jYLG9VXt8dYfkKxxeR7w9bSe",
1369 };
1370 testNetwork(done, params);
1371});
1372it('Allows selection of Blocknode Testnet', function(done) {
1373 var params = {
1374 selectText: "tBND - Blocknode Testnet",
1375 firstAddress: "bSptsFyDktFSKpWveRywJsDoJA2TC6qfHv",
1376 };
1377 testNetwork(done, params);
1378});
1379
1366// BIP39 seed is set from phrase 1380// BIP39 seed is set from phrase
1367it('Sets the bip39 seed from the prhase', function(done) { 1381it('Sets the bip39 seed from the prhase', function(done) {
1368 driver.findElement(By.css('.phrase')) 1382 driver.findElement(By.css('.phrase'))