aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriancoleman <1281387+iancoleman@users.noreply.github.com>2020-11-30 08:46:02 +1100
committerGitHub <noreply@github.com>2020-11-30 08:46:02 +1100
commit1b54929bda9b7b71ada0cb04d1cb11ceb78328de (patch)
treeb0b1fe56724171a17081e391d44f5162d1f25a70
parentd75ddf4ea80cd8385f8d946bd4f50cacbdf6c0cb (diff)
parentad07c1c0b5fd6724f0801eff2b3211e7723ec589 (diff)
downloadBIP39-1b54929bda9b7b71ada0cb04d1cb11ceb78328de.tar.gz
BIP39-1b54929bda9b7b71ada0cb04d1cb11ceb78328de.tar.zst
BIP39-1b54929bda9b7b71ada0cb04d1cb11ceb78328de.zip
Merge pull request #456 from r1979/master
Updated Zcoin (XZC) Due to its rebrand fo Firo (FIRO)
-rw-r--r--src/js/bitcoinjs-extensions.js22
-rw-r--r--src/js/index.js14
-rw-r--r--tests/spec/tests.js20
3 files changed, 28 insertions, 28 deletions
diff --git a/src/js/bitcoinjs-extensions.js b/src/js/bitcoinjs-extensions.js
index 8f50f11..37cc0c6 100644
--- a/src/js/bitcoinjs-extensions.js
+++ b/src/js/bitcoinjs-extensions.js
@@ -768,6 +768,17 @@ libs.bitcoin.networks.feathercoin = {
768 wif: 0x8e, 768 wif: 0x8e,
769}; 769};
770 770
771libs.bitcoin.networks.firo = {
772 messagePrefix: '\x18Firo Signed Message:\n',
773 bip32: {
774 public: 0x0488B21E,
775 private: 0x0488ADE4,
776 },
777 pubKeyHash: 0x52,
778 scriptHash: 0x07,
779 wif: 0xd2,
780};
781
771libs.bitcoin.networks.firstcoin = { 782libs.bitcoin.networks.firstcoin = {
772 messagePrefix: '\x18FirstCoin Signed Message:\n', 783 messagePrefix: '\x18FirstCoin Signed Message:\n',
773 bip32: { 784 bip32: {
@@ -1465,17 +1476,6 @@ libs.bitcoin.networks.wincoin = {
1465 wif: 0xc9, 1476 wif: 0xc9,
1466}; 1477};
1467 1478
1468libs.bitcoin.networks.zcoin = {
1469 messagePrefix: '\x18Zcoin Signed Message:\n',
1470 bip32: {
1471 public: 0x0488B21E,
1472 private: 0x0488ADE4,
1473 },
1474 pubKeyHash: 0x52,
1475 scriptHash: 0x07,
1476 wif: 0xd2,
1477};
1478
1479libs.bitcoin.networks.zcash = { 1479libs.bitcoin.networks.zcash = {
1480 messagePrefix: '\x18Zcash Signed Message:\n', 1480 messagePrefix: '\x18Zcash Signed Message:\n',
1481 bip32: { 1481 bip32: {
diff --git a/src/js/index.js b/src/js/index.js
index 7aa0217..0412b9b 100644
--- a/src/js/index.js
+++ b/src/js/index.js
@@ -2685,6 +2685,13 @@
2685 }, 2685 },
2686 }, 2686 },
2687 { 2687 {
2688 name: "FIRO - Firo",
2689 onSelect: function() {
2690 network = libs.bitcoin.networks.firo;
2691 setHdCoin(136);
2692 },
2693 },
2694 {
2688 name: "FIX - FIX", 2695 name: "FIX - FIX",
2689 onSelect: function() { 2696 onSelect: function() {
2690 network = libs.bitcoin.networks.fix; 2697 network = libs.bitcoin.networks.fix;
@@ -3527,13 +3534,6 @@
3527 }, 3534 },
3528 }, 3535 },
3529 { 3536 {
3530 name: "XZC - Zcoin",
3531 onSelect: function() {
3532 network = libs.bitcoin.networks.zcoin;
3533 setHdCoin(136);
3534 },
3535 },
3536 {
3537 name: "ZCL - Zclassic", 3537 name: "ZCL - Zclassic",
3538 onSelect: function() { 3538 onSelect: function() {
3539 network = libs.bitcoin.networks.zclassic; 3539 network = libs.bitcoin.networks.zclassic;
diff --git a/tests/spec/tests.js b/tests/spec/tests.js
index 9d07edb..c4f3188 100644
--- a/tests/spec/tests.js
+++ b/tests/spec/tests.js
@@ -1214,6 +1214,16 @@ it('Allows selection of FIO', function(done) {
1214 }; 1214 };
1215 testNetwork(done, params); 1215 testNetwork(done, params);
1216}); 1216});
1217it('Allows selection of Firo', function(done) {
1218 var params = {
1219 selectText: "FIRO - Firo",
1220 phrase: "abandon abandon ability",
1221 firstAddress: "a6VcMdP4XgAA9Tr7xNszmPG5FZpfRf17Cq",
1222 firstPubKey: "0236f2348c32dc62d69488b01988ed1154df261723ec60461cb6e62189984c62db",
1223 firstPrivKey: "Y8k3XQRQrJoABEao4Sw45s744g6xth7yviNqFcN7zqPqKUJrrKTQ",
1224 };
1225 testNetwork(done, params);
1226});
1217it('Allows selection of Firstcoin', function(done) { 1227it('Allows selection of Firstcoin', function(done) {
1218 var params = { 1228 var params = {
1219 selectText: "FRST - Firstcoin", 1229 selectText: "FRST - Firstcoin",
@@ -1844,16 +1854,6 @@ it('Allows selection of Wincoin', function(done) {
1844 }; 1854 };
1845 testNetwork(done, params); 1855 testNetwork(done, params);
1846}); 1856});
1847it('Allows selection of Zcoin', function(done) {
1848 var params = {
1849 selectText: "XZC - Zcoin",
1850 phrase: "abandon abandon ability",
1851 firstAddress: "a6VcMdP4XgAA9Tr7xNszmPG5FZpfRf17Cq",
1852 firstPubKey: "0236f2348c32dc62d69488b01988ed1154df261723ec60461cb6e62189984c62db",
1853 firstPrivKey: "Y8k3XQRQrJoABEao4Sw45s744g6xth7yviNqFcN7zqPqKUJrrKTQ",
1854 };
1855 testNetwork(done, params);
1856});
1857it('Allows selection of Zcash', function(done) { 1857it('Allows selection of Zcash', function(done) {
1858 var params = { 1858 var params = {
1859 selectText: "ZEC - Zcash", 1859 selectText: "ZEC - Zcash",