Add Ravencoin (RVN)
authorstandard-error <somesortoferror@gmail.com>
Fri, 9 Nov 2018 15:10:30 +0000 (15:10 +0000)
committerstandard-error <somesortoferror@gmail.com>
Fri, 9 Nov 2018 17:03:28 +0000 (17:03 +0000)
src/js/bitcoinjs-extensions.js
src/js/index.js
tests/spec/tests.js

index a3f86cf..271dbce 100644 (file)
@@ -1023,6 +1023,17 @@ bitcoinjs.bitcoin.networks.putincoin = {
   wif: 0xb7,
 };
 
+bitcoinjs.bitcoin.networks.ravencoin = {
+  messagePrefix: '\x16Raven Signed Message:\n',
+  bip32: {
+    public: 0x0488B21E,
+    private: 0x0488ADE4,
+  },
+  pubKeyHash: 0x3c,
+  scriptHash: 0x7a,
+  wif: 0x80,
+};
+
 bitcoinjs.bitcoin.networks.reddcoin = {
   messagePrefix: '\x18Reddcoin Signed Message:\n',
   bip32: {
index f33d025..de509e8 100644 (file)
                 setHdCoin(122);
             },
         },
+        {
+            name: "RVN - Ravencoin",
+            onSelect: function() {
+                network = bitcoinjs.bitcoin.networks.ravencoin;
+                setHdCoin(175);
+            },
+        },
         {
             name: "RBY - Rubycoin",
             onSelect: function() {
index b1308fb..56c259c 100644 (file)
@@ -1068,6 +1068,13 @@ it('Allows selection of Putincoin', function(done) {
     };
     testNetwork(done, params);
 });
+it('Allows selection of Ravencoin', function(done) {
+    var params = {
+        selectText: "RVN - Ravencoin",
+        firstAddress: "RBuDoVNnzvFsEcX8XKPm8ic4mgiCzjUCNk",
+    };
+    testNetwork(done, params);
+});
 it('Allows selection of Reddcoin', function(done) {
     var params = {
         selectText: "RDD - Reddcoin",