aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 7cd480c..8f50f11 100644
--- a/src/js/bitcoinjs-extensions.js
+++ b/src/js/bitcoinjs-extensions.js
@@ -139,6 +139,17 @@ libs.bitcoin.networks.axe = {
139 wif: 0xcc 139 wif: 0xcc
140}; 140};
141 141
142libs.bitcoin.networks.scribe = {
143 messagePrefix: 'unused',
144 bip32: {
145 public: 0x0488B21E,
146 private: 0x0488ADE4
147 },
148 pubKeyHash: 0x3c,
149 scriptHash: 0x7d,
150 wif: 0x6e
151};
152
142libs.bitcoin.networks.slimcoin = { 153libs.bitcoin.networks.slimcoin = {
143 messagePrefix: 'unused', 154 messagePrefix: 'unused',
144 bip32: { 155 bip32: {
diff --git a/src/js/index.js b/src/js/index.js
index 3dde602..2c2e99a 100644
--- a/src/js/index.js
+++ b/src/js/index.js
@@ -3088,6 +3088,13 @@
3088 setHdCoin(19165); 3088 setHdCoin(19165);
3089 }, 3089 },
3090 }, 3090 },
3091 {
3092 name: "SCRIBE - Scribe",
3093 onSelect: function() {
3094 network = libs.bitcoin.networks.scribe;
3095 setHdCoin(545);
3096 },
3097 },
3091 { 3098 {
3092 name: "SLS - Salus", 3099 name: "SLS - Salus",
3093 onSelect: function() { 3100 onSelect: function() {
diff --git a/tests/spec/tests.js b/tests/spec/tests.js
index 0e7edb9..14cdb8e 100644
--- a/tests/spec/tests.js
+++ b/tests/spec/tests.js
@@ -2265,6 +2265,16 @@ it('Allows selection of CranePay', function(done) {
2265 }; 2265 };
2266 testNetwork(done, params); 2266 testNetwork(done, params);
2267}); 2267});
2268it('Allows selection of Scribe', function(done) {
2269 var params = {
2270 selectText: "SCRIBE - Scribe",
2271 phrase: "abandon abandon ability",
2272 firstAddress: "RYAnPeBLD8veZ9Tw8xugeTC2f9PeZonLHM",
2273 firstPubKey: "02c912bc4759c8a209475502fb5352ff5be8a8f13eb72f1732ee25125cd53edc1e",
2274 firstPrivKey: "HLZWvNCEUv4ghygjH9A2EYCa9HNRcxe5CS42kzUTmoxJYp3z96QE",
2275 };
2276 testNetwork(done, params);
2277});
2268 2278
2269// BIP39 seed is set from phrase 2279// BIP39 seed is set from phrase
2270it('Sets the bip39 seed from the prhase', function(done) { 2280it('Sets the bip39 seed from the prhase', function(done) {