diff options
-rw-r--r-- | src/js/bitcoinjs-extensions.js | 13 | ||||
-rw-r--r-- | src/js/index.js | 7 | ||||
-rw-r--r-- | tests/spec/tests.js | 7 |
3 files changed, 26 insertions, 1 deletions
diff --git a/src/js/bitcoinjs-extensions.js b/src/js/bitcoinjs-extensions.js index d5c3ff9..4154103 100644 --- a/src/js/bitcoinjs-extensions.js +++ b/src/js/bitcoinjs-extensions.js | |||
@@ -1056,6 +1056,17 @@ bitcoinjs.bitcoin.networks.stratis = { | |||
1056 | wif: 0xbf, | 1056 | wif: 0xbf, |
1057 | }; | 1057 | }; |
1058 | 1058 | ||
1059 | bitcoinjs.bitcoin.networks.stratistest = { | ||
1060 | messagePrefix: '\x18Stratis Test Signed Message:\n', | ||
1061 | bip32: { | ||
1062 | public: 0x0488B21E, | ||
1063 | private: 0x0488ADE4, | ||
1064 | }, | ||
1065 | pubKeyHash: 0x41, | ||
1066 | scriptHash: 0x7d, | ||
1067 | wif: 0xbf, | ||
1068 | }; | ||
1069 | |||
1059 | bitcoinjs.bitcoin.networks.syscoin = { | 1070 | bitcoinjs.bitcoin.networks.syscoin = { |
1060 | messagePrefix: '\x18Syscoin Signed Message:\n', | 1071 | messagePrefix: '\x18Syscoin Signed Message:\n', |
1061 | bip32: { | 1072 | bip32: { |
@@ -1275,4 +1286,4 @@ bitcoinjs.bitcoin.networks.energi = { | |||
1275 | pubKeyHash: 0x21, | 1286 | pubKeyHash: 0x21, |
1276 | scriptHash: 0x35, | 1287 | scriptHash: 0x35, |
1277 | wif: 0x6a, | 1288 | wif: 0x6a, |
1278 | }; \ No newline at end of file | 1289 | }; |
diff --git a/src/js/index.js b/src/js/index.js index cf3d5aa..bfab5cf 100644 --- a/src/js/index.js +++ b/src/js/index.js | |||
@@ -2301,6 +2301,13 @@ | |||
2301 | }, | 2301 | }, |
2302 | }, | 2302 | }, |
2303 | { | 2303 | { |
2304 | name: "TSTRAT - Stratis Testnet", | ||
2305 | onSelect: function() { | ||
2306 | network = bitcoinjs.bitcoin.networks.stratistest; | ||
2307 | setHdCoin(105); | ||
2308 | }, | ||
2309 | }, | ||
2310 | { | ||
2304 | name: "SYS - Syscoin", | 2311 | name: "SYS - Syscoin", |
2305 | onSelect: function() { | 2312 | onSelect: function() { |
2306 | network = bitcoinjs.bitcoin.networks.syscoin; | 2313 | network = bitcoinjs.bitcoin.networks.syscoin; |
diff --git a/tests/spec/tests.js b/tests/spec/tests.js index b81294b..c97c973 100644 --- a/tests/spec/tests.js +++ b/tests/spec/tests.js | |||
@@ -1096,6 +1096,13 @@ it('Allows selection of Stratis', function(done) { | |||
1096 | }; | 1096 | }; |
1097 | testNetwork(done, params); | 1097 | testNetwork(done, params); |
1098 | }); | 1098 | }); |
1099 | it('Allows selection of Stratis Test', function(done) { | ||
1100 | var params = { | ||
1101 | selectText: "TSTRAT - Stratis Testnet", | ||
1102 | firstAddress: "TRLWm3dye4FRrDWouwYUSUZP96xb76mBE3", | ||
1103 | }; | ||
1104 | testNetwork(done, params); | ||
1105 | }); | ||
1099 | it('Allows selection of Syscoin', function(done) { | 1106 | it('Allows selection of Syscoin', function(done) { |
1100 | var params = { | 1107 | var params = { |
1101 | selectText: "SYS - Syscoin", | 1108 | selectText: "SYS - Syscoin", |