aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriancoleman <1281387+iancoleman@users.noreply.github.com>2018-09-15 14:40:17 +1000
committerGitHub <noreply@github.com>2018-09-15 14:40:17 +1000
commit8c849703eb1fa4d316c55bcc4b8dee45bfab956f (patch)
tree535344f997d96e2901c007a5bc8d4b92db611596
parent376ea8c46d7e9299ac874277ed38d1b29bd3cfd9 (diff)
parent2575538b2500a192bfbc48f6bedc20985fa74565 (diff)
downloadBIP39-8c849703eb1fa4d316c55bcc4b8dee45bfab956f.tar.gz
BIP39-8c849703eb1fa4d316c55bcc4b8dee45bfab956f.tar.zst
BIP39-8c849703eb1fa4d316c55bcc4b8dee45bfab956f.zip
Merge pull request #251 from skironDotNet/artaxcoin
Added Artax as HD 219 ...
-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