aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPawel Cioch <pawel@greenhex.net>2018-09-13 23:19:00 -0500
committerPawel Cioch <pawel@greenhex.net>2018-09-13 23:19:00 -0500
commit2575538b2500a192bfbc48f6bedc20985fa74565 (patch)
tree535344f997d96e2901c007a5bc8d4b92db611596
parent376ea8c46d7e9299ac874277ed38d1b29bd3cfd9 (diff)
downloadBIP39-2575538b2500a192bfbc48f6bedc20985fa74565.tar.gz
BIP39-2575538b2500a192bfbc48f6bedc20985fa74565.tar.zst
BIP39-2575538b2500a192bfbc48f6bedc20985fa74565.zip
Added Artax as HD 219 from proposed https://github.com/satoshilabs/slips/pull/363
-rw-r--r--src/js/bitcoinjs-extensions.js11
-rw-r--r--src/js/index.js7
-rw-r--r--tests/spec/tests.js7
3 files changed, 25 insertions, 0 deletions
diff --git a/src/js/bitcoinjs-extensions.js b/src/js/bitcoinjs-extensions.js
index 9b0366a..054dd24 100644
--- a/src/js/bitcoinjs-extensions.js
+++ b/src/js/bitcoinjs-extensions.js
@@ -1342,3 +1342,14 @@ bitcoinjs.bitcoin.networks.exchangecoin = {
1342 scriptHash: 0x34AF, 1342 scriptHash: 0x34AF,
1343 wif: 0x80, 1343 wif: 0x80,
1344}; 1344};
1345
1346bitcoinjs.bitcoin.networks.artax = {
1347 messagePrefix: '\x18Artax Signed Message:\n',
1348 bip32: {
1349 public: 0x0488B21E,
1350 private: 0x0488ADE4,
1351 },
1352 pubKeyHash: 0x17,
1353 scriptHash: 0x1CBD,
1354 wif: 0x97,
1355};
diff --git a/src/js/index.js b/src/js/index.js
index e3d0b4b..d969c67 100644
--- a/src/js/index.js
+++ b/src/js/index.js
@@ -2489,6 +2489,13 @@
2489 setHdCoin(181); 2489 setHdCoin(181);
2490 }, 2490 },
2491 }, 2491 },
2492 {
2493 name: "XAX - Artax",
2494 onSelect: function() {
2495 network = bitcoinjs.bitcoin.networks.artax;
2496 setHdCoin(219);
2497 },
2498 },
2492 { 2499 {
2493 name: "XBC - Bitcoinplus", 2500 name: "XBC - Bitcoinplus",
2494 onSelect: function() { 2501 onSelect: function() {
diff --git a/tests/spec/tests.js b/tests/spec/tests.js
index b5fb4a4..4eff0be 100644
--- a/tests/spec/tests.js
+++ b/tests/spec/tests.js
@@ -1297,6 +1297,13 @@ it('Allows selection of ExchangeCoin', function(done) {
1297 }; 1297 };
1298 testNetwork(done, params); 1298 testNetwork(done, params);
1299}); 1299});
1300it('Allows selection of Artax', function(done) {
1301 var params = {
1302 selectText: "XAX - Artax",
1303 firstAddress: "AYxaQPY7XLidG31V7F3yNzwxPYpYzRqG4q",
1304 };
1305 testNetwork(done, params);
1306});
1300 1307
1301 1308
1302// BIP39 seed is set from phrase 1309// BIP39 seed is set from phrase