aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/js/bitcoinjs-extensions.js10
-rw-r--r--src/js/index.js7
-rw-r--r--tests/spec/tests.js5
3 files changed, 22 insertions, 0 deletions
diff --git a/src/js/bitcoinjs-extensions.js b/src/js/bitcoinjs-extensions.js
index a613000..03c7fb0 100644
--- a/src/js/bitcoinjs-extensions.js
+++ b/src/js/bitcoinjs-extensions.js
@@ -1023,6 +1023,16 @@ bitcoinjs.bitcoin.networks.rubycoin = {
1023 wif: 0xbc, 1023 wif: 0xbc,
1024}; 1024};
1025 1025
1026messagePrefix: '\x18Salus Signed Message:\n',
1027bip32: {
1028 public: 0x0488B21E,
1029 private: 0x0488ADE4,
1030},
1031pubKeyHash: 0x3f,
1032scriptHash: 0xc4,
1033wif: 0xbf,
1034};
1035
1026bitcoinjs.bitcoin.networks.smileycoin = { 1036bitcoinjs.bitcoin.networks.smileycoin = {
1027 messagePrefix: '\x18Smileycoin Signed Message:\n', 1037 messagePrefix: '\x18Smileycoin Signed Message:\n',
1028 bip32: { 1038 bip32: {
diff --git a/src/js/index.js b/src/js/index.js
index 16c5cef..93730ed 100644
--- a/src/js/index.js
+++ b/src/js/index.js
@@ -2315,6 +2315,13 @@
2315 }, 2315 },
2316 }, 2316 },
2317 { 2317 {
2318 name: "SLS - Salus",
2319 onSelect: function() {
2320 network = bitcoinjs.bitcoin.networks.salus;
2321 setHdCoin(63);
2322 },
2323 },
2324 {
2318 name: "SDC - ShadowCash", 2325 name: "SDC - ShadowCash",
2319 onSelect: function() { 2326 onSelect: function() {
2320 network = bitcoinjs.bitcoin.networks.shadow; 2327 network = bitcoinjs.bitcoin.networks.shadow;
diff --git a/tests/spec/tests.js b/tests/spec/tests.js
index 0570514..4d92471 100644
--- a/tests/spec/tests.js
+++ b/tests/spec/tests.js
@@ -1075,6 +1075,11 @@ it('Allows selection of Rubycoin', function(done) {
1075 }; 1075 };
1076 testNetwork(done, params); 1076 testNetwork(done, params);
1077}); 1077});
1078it('Allows selection of Salus', function(done) {
1079 var params = {
1080 selectText: "SLS - Salus",
1081 firstAddress: "SgdYBmVytcW2aCYitdegwkUcCU7RSqYokB",
1082 };
1078it('Allows selection of Smileycoin', function(done) { 1083it('Allows selection of Smileycoin', function(done) {
1079 var params = { 1084 var params = {
1080 selectText: "SMLY - Smileycoin", 1085 selectText: "SMLY - Smileycoin",