Support BSV, RPD, MONKEY, ARYA
authorPavlos Tzegiannakis <pavlostze@gmail.com>
Mon, 2 Sep 2019 06:58:09 +0000 (09:58 +0300)
committerPavlos Tzegiannakis <pavlostze@gmail.com>
Mon, 2 Sep 2019 06:58:09 +0000 (09:58 +0300)
src/js/bitcoinjs-extensions.js
src/js/index.js
tests/spec/tests.js

index b37f58f5255302fb4bd4f2a199cc4fec58116fe3..0658ae7054cc91b7667e41ad5b28bd5a5e2f8124 100644 (file)
@@ -1638,3 +1638,48 @@ bitcoinjs.bitcoin.networks.wagerr = {
   scriptHash: 0x3f,
   wif: 0xc7
 };
+
+bitcoinjs.bitcoin.networks.bitcoinsv = {
+  messagePrefix: 'unused',
+  bip32: {
+    public: 0x0488b21e,
+    private: 0x0488ade4
+  },
+  pubKeyHash: 0x00,
+  scriptHash: 0x05,
+  wif: 0x80
+};
+
+bitcoinjs.bitcoin.networks.monkeyproject = {
+  messagePrefix: 'Monkey Signed Message:\n',
+  bip32: {
+    public: 0x0488b21e,
+    private: 0x0488dde4
+  },
+  pubKeyHash: 0x33,
+  scriptHash: 0x1c,
+  wif: 0x37
+};
+
+bitcoinjs.bitcoin.networks.rapids = {
+  messagePrefix: 'DarkNet Signed Message:\n',
+  bip32: {
+    public: 0x0488b21e,
+    private: 0x0488ade4
+  },
+  pubKeyHash: 0x3d,
+  scriptHash: 0x06,
+  wif: 0x2e
+};
+
+bitcoinjs.bitcoin.networks.aryacoin = {
+  messagePrefix: '\x18Aryacoin Signed Message:\n',
+  bech32: 'arya',
+  bip32: {
+    public: 0x0488B21E,
+    private: 0x0488ADE4,
+  },
+  pubKeyHash: 0x17,
+  scriptHash: 0x6f,
+  wif: 0x97
+};
index 4fac6f16c26f2321483d05342ef230ee789b0755..b3450d3eb895d97a96b798c33c513f88b09af968 100644 (file)
                 setHdCoin(161);
             },
         },
+        {
+            name: "ARYA - Aryacoin",
+            onSelect: function() {
+                network = bitcoinjs.bitcoin.networks.aryacoin;
+                setHdCoin(357);
+            },
+        },
         {
             name: "AUR - Auroracoin",
             onSelect: function() {
                 setHdCoin(183);
             },
         },
+        {
+            name: "BSV - BitcoinSV",
+            onSelect: function() {
+                network = bitcoinjs.bitcoin.networks.bitcoinsv;
+                setHdCoin(236);
+            },
+        },
         {
             name: "BTCZ - Bitcoinz",
             onSelect: function() {
                 setHdCoin(22);
             },
         },
+        {
+            name: "MONK - Monkey Project",
+            onSelect: function() {
+                network = bitcoinjs.bitcoin.networks.monkeyproject,
+                setHdCoin(214);
+            },
+        },
         {
             name: "MUSIC - Musicoin",
             segwitAvailable: false,
                 setHdCoin(122);
             },
         },
+        {
+            name: "RPD - Rapids",
+            onSelect: function() {
+                network = bitcoinjs.bitcoin.networks.rapids;
+                setHdCoin(320);
+            },
+        },
         {
             name: "RVN - Ravencoin",
             onSelect: function() {
index 6f9fd4fd6bc3d8a7e67c2aa0709fa9426625f3e4..8b77b4a24b60b62e4b60cf81a8676b549d7286ac 100644 (file)
@@ -732,6 +732,13 @@ it('Allows selection of Asiacoin', function(done) {
     };
     testNetwork(done, params);
 });
+it('Allows selection of Aryacoin', function(done) {
+    var params = {
+        selectText: "ARYA - Aryacoin",
+        firstAddress: "Abr6gX25KaU9BpwD34UfsL3A4n89NvYYSf",
+    };
+    testNetwork(done, params);
+});
 it('Allows selection of Auroracoin', function(done) {
     var params = {
         selectText: "AUR - Auroracoin",
@@ -774,6 +781,13 @@ it('Allows selection of Bitcoin Private', function(done) {
     };
     testNetwork(done, params);
 });
+it('Allows selection of Bitcoin SV', function(done) {
+    var params = {
+        selectText: "BSV - BitcoinSV",
+        firstAddress: "1N4mgtE5yxifch9jWs7Sds6oVqxdy2t576",
+    };
+    testNetwork(done, params);
+});
 it('Allows selection of Bitcoinz', function(done) {
     var params = {
         selectText: "BTCZ - Bitcoinz",
@@ -1180,6 +1194,13 @@ it('Allows selection of Putincoin', function(done) {
     };
     testNetwork(done, params);
 });
+it('Allows selection of Rapids', function(done) {
+    var params = {
+        selectText: "RPD - Rapids",
+        firstAddress: "Ri8XxUdZaXS5LqxmFJcFEjFinkaMbmhSUp",
+    };
+    testNetwork(done, params);
+});
 it('Allows selection of Ravencoin', function(done) {
     var params = {
         selectText: "RVN - Ravencoin",
@@ -1411,6 +1432,14 @@ it('Allows selection of MIX', function(done) {
     };
     testNetwork(done, params);
 });
+it('Allows selection of Monkey Project', function(done) {
+    var params = {
+        selectText: "MONK - Monkey Project",
+        firstAddress: "MnLrcnnUzKnf7TzufjRe5DLZqQJz18oYyu",
+    };
+    testNetwork(done, params);
+});
+
 it('Allows selection of Musicoin', function(done) {
     var params = {
         selectText: "MUSIC - Musicoin",