Merge pull request #352 from PavlosTze/bsv-rpd-monkey-arya
authoriancoleman <1281387+iancoleman@users.noreply.github.com>
Thu, 12 Sep 2019 00:36:30 +0000 (10:36 +1000)
committerGitHub <noreply@github.com>
Thu, 12 Sep 2019 00:36:30 +0000 (10:36 +1000)
Support BSV, RPD, MONKEY, ARYA

src/js/bitcoinjs-extensions.js
src/js/index.js
tests/spec/tests.js

index 0658ae7054cc91b7667e41ad5b28bd5a5e2f8124..ac9f315a7c48c20855099167602e47e95e24219e 100644 (file)
@@ -1462,6 +1462,17 @@ bitcoinjs.bitcoin.networks.hush = {
   wif: 0x80,
 };
 
+bitcoinjs.bitcoin.networks.hush3 = {
+  messagePrefix: '\x18Hush Signed Message:\n',
+  bip32: {
+    public: 0x0488B21E,
+    private: 0x0488ADE4,
+  },
+  pubKeyHash: 0x3C,
+  scriptHash: 0x55,
+  wif: 0xBC,
+};
+
 bitcoinjs.bitcoin.networks.zclassic = {
   messagePrefix: '\x18Zcash Signed Message:\n',
   bip32: {
index b3450d3eb895d97a96b798c33c513f88b09af968..fff1e40ebb6b5204e401e533de2119359eda1a97 100644 (file)
             },
         },
                {
-            name: "HUSH - Hush",
+            name: "HUSH - Hush (Legacy)",
             onSelect: function() {
                 network = bitcoinjs.bitcoin.networks.hush;
                 setHdCoin(197);
             },
+        },
+               {
+            name: "HUSH - Hush3",
+            onSelect: function() {
+                network = bitcoinjs.bitcoin.networks.hush3;
+                setHdCoin(197);
+            },
         },
         {
             name: "INSN - Insane",
             },
         },
         {
-            name: "ZEN - Zencash",
+            name: "ZEN - Horizen",
             onSelect: function() {
                 network = bitcoinjs.bitcoin.networks.zencash;
                 setHdCoin(121);
index 8b77b4a24b60b62e4b60cf81a8676b549d7286ac..09013111294e66fdc4e28c47f9fb8bb4f7f79c5c 100644 (file)
@@ -1397,9 +1397,9 @@ it('Allows selection of Zclassic', function(done) {
     };
     testNetwork(done, params);
 });
-it('Allows selection of Zencash', function(done) {
+it('Allows selection of Horizen', function(done) {
     var params = {
-        selectText: "ZEN - Zencash",
+        selectText: "ZEN - Horizen",
         firstAddress: "znWh9XASyW2dZq5tck84wFjiwuqVysi7q3p",
     };
     testNetwork(done, params);
@@ -1470,11 +1470,18 @@ it('Allows selection of Callisto', function(done) {
 });
 it('Allows selection of HUSH', function(done) {
     var params = {
-        selectText: "HUSH - Hush",
+        selectText: "HUSH - Hush (Legacy)",
         firstAddress: "t1g6rLXUnJaiJuu4q4zmJjoa9Gk4fwKpiuA",
     };
     testNetwork(done, params);
 });
+it('Allows selection of HUSH3', function(done) {
+    var params = {
+        selectText: "HUSH - Hush3",
+        firstAddress: "RXWSQhwvw5jHPGP8bjwJhWoRnMLBnuPDKD",
+    };
+    testNetwork(done, params);
+});
 it('Allows selection of ExchangeCoin', function(done) {
     var params = {
         selectText: "EXCC - ExchangeCoin",