]> git.immae.eu Git - perso/Immae/Projets/Cryptomonnaies/BIP39.git/commitdiff
Salus (SLS) support added
authorStoner19 <stoner19@msn.com>
Tue, 21 Aug 2018 19:35:49 +0000 (13:35 -0600)
committerStoner19 <stoner19@msn.com>
Tue, 21 Aug 2018 19:35:49 +0000 (13:35 -0600)
src/js/bitcoinjs-extensions.js
src/js/index.js
tests/spec/tests.js

index a6130003d448bd1e36124c8069e57a7421b98b18..03c7fb0e2af26bbf216a3cfdcd803cb529afc8cb 100644 (file)
@@ -1023,6 +1023,16 @@ bitcoinjs.bitcoin.networks.rubycoin = {
   wif: 0xbc,
 };
 
+messagePrefix: '\x18Salus Signed Message:\n',
+bip32: {
+  public: 0x0488B21E,
+  private: 0x0488ADE4,
+},
+pubKeyHash: 0x3f,
+scriptHash: 0xc4,
+wif: 0xbf,
+};
+
 bitcoinjs.bitcoin.networks.smileycoin = {
   messagePrefix: '\x18Smileycoin Signed Message:\n',
   bip32: {
index 16c5cef5ce1da2837167f64650e843c46102a791..93730edac34dd840359c4c7783cb56a9da19e281 100644 (file)
                 setHdCoin(129);
             },
         },
+        {
+          name: "SLS - Salus",
+          onSelect: function() {
+              network = bitcoinjs.bitcoin.networks.salus;
+              setHdCoin(63);
+            },
+        },
         {
             name: "SDC - ShadowCash",
             onSelect: function() {
index 0570514021917db9e9be7daff8e7edc1c668cd9d..4d924717bd084c769a81b031a2b5a02205b9ab5f 100644 (file)
@@ -1075,6 +1075,11 @@ it('Allows selection of Rubycoin', function(done) {
     };
     testNetwork(done, params);
 });
+it('Allows selection of Salus', function(done) {
+    var params = {
+        selectText: "SLS - Salus",
+        firstAddress: "SgdYBmVytcW2aCYitdegwkUcCU7RSqYokB",
+    };
 it('Allows selection of Smileycoin', function(done) {
     var params = {
         selectText: "SMLY - Smileycoin",