Merge pull request #433 from scribenetwork/master

Add Scribe support
This commit is contained in:
iancoleman
2020-08-25 09:27:54 +10:00
committed by GitHub
3 changed files with 28 additions and 0 deletions

View File

@@ -139,6 +139,17 @@ libs.bitcoin.networks.axe = {
wif: 0xcc
};
libs.bitcoin.networks.scribe = {
messagePrefix: 'unused',
bip32: {
public: 0x0488B21E,
private: 0x0488ADE4
},
pubKeyHash: 0x3c,
scriptHash: 0x7d,
wif: 0x6e
};
libs.bitcoin.networks.slimcoin = {
messagePrefix: 'unused',
bip32: {

View File

@@ -3088,6 +3088,13 @@
setHdCoin(19165);
},
},
{
name: "SCRIBE - Scribe",
onSelect: function() {
network = libs.bitcoin.networks.scribe;
setHdCoin(545);
},
},
{
name: "SLS - Salus",
onSelect: function() {

View File

@@ -2265,6 +2265,16 @@ it('Allows selection of CranePay', function(done) {
};
testNetwork(done, params);
});
it('Allows selection of Scribe', function(done) {
var params = {
selectText: "SCRIBE - Scribe",
phrase: "abandon abandon ability",
firstAddress: "RYAnPeBLD8veZ9Tw8xugeTC2f9PeZonLHM",
firstPubKey: "02c912bc4759c8a209475502fb5352ff5be8a8f13eb72f1732ee25125cd53edc1e",
firstPrivKey: "HLZWvNCEUv4ghygjH9A2EYCa9HNRcxe5CS42kzUTmoxJYp3z96QE",
};
testNetwork(done, params);
});
// BIP39 seed is set from phrase
it('Sets the bip39 seed from the prhase', function(done) {