diff options
-rw-r--r-- | src/js/bitcoinjs-extensions.js | 11 | ||||
-rw-r--r-- | src/js/index.js | 7 | ||||
-rw-r--r-- | tests/spec/tests.js | 10 |
3 files changed, 28 insertions, 0 deletions
diff --git a/src/js/bitcoinjs-extensions.js b/src/js/bitcoinjs-extensions.js index b049d78..5d889ab 100644 --- a/src/js/bitcoinjs-extensions.js +++ b/src/js/bitcoinjs-extensions.js | |||
@@ -1219,6 +1219,17 @@ libs.bitcoin.networks.revolutionvr = { | |||
1219 | wif: 0xc6, | 1219 | wif: 0xc6, |
1220 | }; | 1220 | }; |
1221 | 1221 | ||
1222 | libs.bitcoin.networks.ritocoin = { | ||
1223 | messagePrefix: '\x15Rito Signed Message:\n', | ||
1224 | bip32: { | ||
1225 | public: 0x0488B21E, | ||
1226 | private: 0x0488ADE4, | ||
1227 | }, | ||
1228 | pubKeyHash: 0x19, | ||
1229 | scriptHash: 0x69, | ||
1230 | wif: 0x80, | ||
1231 | }; | ||
1232 | |||
1222 | libs.bitcoin.networks.rsk = { | 1233 | libs.bitcoin.networks.rsk = { |
1223 | messagePrefix: '\x18RSK Signed Message:\n', | 1234 | messagePrefix: '\x18RSK Signed Message:\n', |
1224 | bip32: { | 1235 | bip32: { |
diff --git a/src/js/index.js b/src/js/index.js index fd8c16b..f7835fa 100644 --- a/src/js/index.js +++ b/src/js/index.js | |||
@@ -3219,6 +3219,13 @@ | |||
3219 | }, | 3219 | }, |
3220 | }, | 3220 | }, |
3221 | { | 3221 | { |
3222 | name: "RITO - Ritocoin", | ||
3223 | onSelect: function() { | ||
3224 | network = libs.bitcoin.networks.ritocoin; | ||
3225 | setHdCoin(19169); | ||
3226 | }, | ||
3227 | }, | ||
3228 | { | ||
3222 | name: "RVR - RevolutionVR", | 3229 | name: "RVR - RevolutionVR", |
3223 | onSelect: function() { | 3230 | onSelect: function() { |
3224 | network = libs.bitcoin.networks.revolutionvr; | 3231 | network = libs.bitcoin.networks.revolutionvr; |
diff --git a/tests/spec/tests.js b/tests/spec/tests.js index 0332f96..9c3eb6a 100644 --- a/tests/spec/tests.js +++ b/tests/spec/tests.js | |||
@@ -1635,6 +1635,16 @@ it('Allows selection of RevolutionVR', function(done) { | |||
1635 | }; | 1635 | }; |
1636 | testNetwork(done, params); | 1636 | testNetwork(done, params); |
1637 | }); | 1637 | }); |
1638 | it('Allows selection of Ritocoin', function(done) { | ||
1639 | var params = { | ||
1640 | selectText: "RITO - Ritocoin", | ||
1641 | phrase: "abandon abandon ability", | ||
1642 | firstAddress: "BMbHdwDiuaZh4ATp8Xapf4srv3swzAGgkf", | ||
1643 | firstPubKey: "036f5f55dc37fa97294a2a5ae4d92735d4392d4405cbbebebf2d70d5d6781be622", | ||
1644 | firstPrivKey: "L1CyVD5ADNgSUxZn6kRpJe9e17FDuAZzRGwNjvDBnEqRWjo4SEAX", | ||
1645 | }; | ||
1646 | testNetwork(done, params); | ||
1647 | }); | ||
1638 | it('Allows selection of Rubycoin', function(done) { | 1648 | it('Allows selection of Rubycoin', function(done) { |
1639 | var params = { | 1649 | var params = { |
1640 | selectText: "RBY - Rubycoin", | 1650 | selectText: "RBY - Rubycoin", |