diff options
author | iancoleman <1281387+iancoleman@users.noreply.github.com> | 2020-08-25 09:27:54 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-25 09:27:54 +1000 |
commit | 863eee8ed754e4aebd5059b712deb4fca8709c27 (patch) | |
tree | 2a430aaa691173b9c45f354b15d105db4e3ae98a | |
parent | f32b24e3807426d235fa5d808543001b9ee3ba39 (diff) | |
parent | 4729ecca04a9f9300d09a2c799870e2003222e84 (diff) | |
download | BIP39-863eee8ed754e4aebd5059b712deb4fca8709c27.tar.gz BIP39-863eee8ed754e4aebd5059b712deb4fca8709c27.tar.zst BIP39-863eee8ed754e4aebd5059b712deb4fca8709c27.zip |
Merge pull request #433 from scribenetwork/master
Add Scribe support
-rw-r--r-- | src/js/bitcoinjs-extensions.js | 11 | ||||
-rw-r--r-- | src/js/index.js | 7 | ||||
-rw-r--r-- | tests/spec/tests.js | 10 |
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 | ||
142 | libs.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 | |||
142 | libs.bitcoin.networks.slimcoin = { | 153 | libs.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 | }); |
2268 | it('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 |
2270 | it('Sets the bip39 seed from the prhase', function(done) { | 2280 | it('Sets the bip39 seed from the prhase', function(done) { |