aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriancoleman <1281387+iancoleman@users.noreply.github.com>2021-02-11 12:58:49 +1100
committerGitHub <noreply@github.com>2021-02-11 12:58:49 +1100
commit545348d1594a428a604614b480a271f6450bf47a (patch)
tree7da59ec90e6bdaa34fbec58c07d97f408f37c5a9
parent8835afe8a2a01bb189a8712c0797ea60566f553a (diff)
parentf7125606bf1ac43c91a395707b07c30f887a60cd (diff)
downloadBIP39-545348d1594a428a604614b480a271f6450bf47a.tar.gz
BIP39-545348d1594a428a604614b480a271f6450bf47a.tar.zst
BIP39-545348d1594a428a604614b480a271f6450bf47a.zip
Merge pull request #466 from RitoProject/ritocoin
Add Ritocoin (RITO)
-rw-r--r--src/js/bitcoinjs-extensions.js11
-rw-r--r--src/js/index.js7
-rw-r--r--tests/spec/tests.js10
3 files changed, 28 insertions, 0 deletions
diff --git a/src/js/bitcoinjs-extensions.js b/src/js/bitcoinjs-extensions.js
index e4996ed..84de8da 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
1222libs.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: 0x8b,
1231};
1232
1222libs.bitcoin.networks.rsk = { 1233libs.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 1f4cc1f..713b5e8 100644
--- a/src/js/index.js
+++ b/src/js/index.js
@@ -3240,6 +3240,13 @@
3240 }, 3240 },
3241 }, 3241 },
3242 { 3242 {
3243 name: "RITO - Ritocoin",
3244 onSelect: function() {
3245 network = libs.bitcoin.networks.ritocoin;
3246 setHdCoin(19169);
3247 },
3248 },
3249 {
3243 name: "RVR - RevolutionVR", 3250 name: "RVR - RevolutionVR",
3244 onSelect: function() { 3251 onSelect: function() {
3245 network = libs.bitcoin.networks.revolutionvr; 3252 network = libs.bitcoin.networks.revolutionvr;
diff --git a/tests/spec/tests.js b/tests/spec/tests.js
index ca5b1bb..f350fa7 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});
1638it('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});
1638it('Allows selection of Rubycoin', function(done) { 1648it('Allows selection of Rubycoin', function(done) {
1639 var params = { 1649 var params = {
1640 selectText: "RBY - Rubycoin", 1650 selectText: "RBY - Rubycoin",