]> git.immae.eu Git - perso/Immae/Projets/Cryptomonnaies/BIP39.git/commitdiff
Add Ritocoin (RITO)
authorScotty0448 <scotty@chaintek.net>
Tue, 26 Jan 2021 23:12:25 +0000 (16:12 -0700)
committerScotty0448 <scotty@chaintek.net>
Tue, 26 Jan 2021 23:12:25 +0000 (16:12 -0700)
src/js/bitcoinjs-extensions.js
src/js/index.js
tests/spec/tests.js

index b049d78e7bf8e8088bcc26f6f50696b3e959d714..5d889ab5639a4b0ed4b8544aa2b6f0418a306fa1 100644 (file)
@@ -1219,6 +1219,17 @@ libs.bitcoin.networks.revolutionvr = {
   wif: 0xc6,
 };
 
+libs.bitcoin.networks.ritocoin = {
+  messagePrefix: '\x15Rito Signed Message:\n',
+  bip32: {
+    public: 0x0488B21E,
+    private: 0x0488ADE4,
+  },
+  pubKeyHash: 0x19,
+  scriptHash: 0x69,
+  wif: 0x80,
+};
+
 libs.bitcoin.networks.rsk = {
   messagePrefix: '\x18RSK Signed Message:\n',
   bip32: {
index fd8c16b99173bcb4a8a6a3c49793bf062dd63d4e..f7835fa9f92e208ddccfb7e31d8deb077cd3dc25 100644 (file)
                 setHdCoin(4);
             },
         },
+        {
+            name: "RITO - Ritocoin",
+            onSelect: function() {
+                network = libs.bitcoin.networks.ritocoin;
+                setHdCoin(19169);
+            },
+        },
         {
             name: "RVR - RevolutionVR",
             onSelect: function() {
index 0332f96ac7985f9314d2f901aecdc8c691eda68d..9c3eb6abe7bf136a9635d80cff226cef9595f82b 100644 (file)
@@ -1635,6 +1635,16 @@ it('Allows selection of RevolutionVR', function(done) {
     };
     testNetwork(done, params);
 });
+it('Allows selection of Ritocoin', function(done) {
+    var params = {
+        selectText: "RITO - Ritocoin",
+        phrase: "abandon abandon ability",
+        firstAddress: "BMbHdwDiuaZh4ATp8Xapf4srv3swzAGgkf",
+        firstPubKey: "036f5f55dc37fa97294a2a5ae4d92735d4392d4405cbbebebf2d70d5d6781be622",
+        firstPrivKey: "L1CyVD5ADNgSUxZn6kRpJe9e17FDuAZzRGwNjvDBnEqRWjo4SEAX",
+    };
+    testNetwork(done, params);
+});
 it('Allows selection of Rubycoin', function(done) {
     var params = {
         selectText: "RBY - Rubycoin",