aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriancoleman <1281387+iancoleman@users.noreply.github.com>2018-11-11 16:07:45 +1100
committerGitHub <noreply@github.com>2018-11-11 16:07:45 +1100
commit3e4551b0822de0ed41f5d6a31722450864d9ad2c (patch)
treef707949c9590456a9e53365d97c5bc0ae1f1aa36
parentce349ac99f2083eec70f9546354aaa2eae4689ed (diff)
parent1fe8f5195f2f38a507cf786c96a172fba4bb303a (diff)
downloadBIP39-3e4551b0822de0ed41f5d6a31722450864d9ad2c.tar.gz
BIP39-3e4551b0822de0ed41f5d6a31722450864d9ad2c.tar.zst
BIP39-3e4551b0822de0ed41f5d6a31722450864d9ad2c.zip
Merge pull request #277 from standard-error/master
Add Ravencoin (RVN)
-rw-r--r--src/js/bitcoinjs-extensions.js11
-rw-r--r--src/js/index.js7
-rw-r--r--tests/spec/tests.js7
3 files changed, 25 insertions, 0 deletions
diff --git a/src/js/bitcoinjs-extensions.js b/src/js/bitcoinjs-extensions.js
index a3f86cf..271dbce 100644
--- a/src/js/bitcoinjs-extensions.js
+++ b/src/js/bitcoinjs-extensions.js
@@ -1023,6 +1023,17 @@ bitcoinjs.bitcoin.networks.putincoin = {
1023 wif: 0xb7, 1023 wif: 0xb7,
1024}; 1024};
1025 1025
1026bitcoinjs.bitcoin.networks.ravencoin = {
1027 messagePrefix: '\x16Raven Signed Message:\n',
1028 bip32: {
1029 public: 0x0488B21E,
1030 private: 0x0488ADE4,
1031 },
1032 pubKeyHash: 0x3c,
1033 scriptHash: 0x7a,
1034 wif: 0x80,
1035};
1036
1026bitcoinjs.bitcoin.networks.reddcoin = { 1037bitcoinjs.bitcoin.networks.reddcoin = {
1027 messagePrefix: '\x18Reddcoin Signed Message:\n', 1038 messagePrefix: '\x18Reddcoin Signed Message:\n',
1028 bip32: { 1039 bip32: {
diff --git a/src/js/index.js b/src/js/index.js
index f33d025..de509e8 100644
--- a/src/js/index.js
+++ b/src/js/index.js
@@ -2350,6 +2350,13 @@
2350 }, 2350 },
2351 }, 2351 },
2352 { 2352 {
2353 name: "RVN - Ravencoin",
2354 onSelect: function() {
2355 network = bitcoinjs.bitcoin.networks.ravencoin;
2356 setHdCoin(175);
2357 },
2358 },
2359 {
2353 name: "RBY - Rubycoin", 2360 name: "RBY - Rubycoin",
2354 onSelect: function() { 2361 onSelect: function() {
2355 network = bitcoinjs.bitcoin.networks.rubycoin; 2362 network = bitcoinjs.bitcoin.networks.rubycoin;
diff --git a/tests/spec/tests.js b/tests/spec/tests.js
index b1308fb..56c259c 100644
--- a/tests/spec/tests.js
+++ b/tests/spec/tests.js
@@ -1068,6 +1068,13 @@ it('Allows selection of Putincoin', function(done) {
1068 }; 1068 };
1069 testNetwork(done, params); 1069 testNetwork(done, params);
1070}); 1070});
1071it('Allows selection of Ravencoin', function(done) {
1072 var params = {
1073 selectText: "RVN - Ravencoin",
1074 firstAddress: "RBuDoVNnzvFsEcX8XKPm8ic4mgiCzjUCNk",
1075 };
1076 testNetwork(done, params);
1077});
1071it('Allows selection of Reddcoin', function(done) { 1078it('Allows selection of Reddcoin', function(done) {
1072 var params = { 1079 var params = {
1073 selectText: "RDD - Reddcoin", 1080 selectText: "RDD - Reddcoin",