Merge branch 'master' into master

This commit is contained in:
iancoleman
2018-12-05 08:36:51 +11:00
committed by GitHub
4 changed files with 76 additions and 1 deletions

View File

@@ -1441,3 +1441,25 @@ bitcoinjs.bitcoin.networks.phore = {
scriptHash: 0x0D,
wif: 0xD4,
};
bitcoinjs.bitcoin.networks.blocknode = {
messagePrefix: '\x18Blocknode Signed Message:\n',
bip32: {
public: 0x0488b21e,
private: 0x0488ade4
},
pubKeyHash: 0x19,
scriptHash: 0x3F,
wif: 0x4b,
};
bitcoinjs.bitcoin.networks.blocknode_testnet = {
messagePrefix: '\x18Blocknode Testnet Signed Message:\n',
bip32: {
public: 0x043587cf,
private: 0x04358394
},
pubKeyHash: 0x55,
scriptHash: 0x7d,
wif: 0x89,
};

View File

@@ -1702,6 +1702,20 @@
setHdCoin(10);
},
},
{
name: "BND - Blocknode",
onSelect: function() {
network = bitcoinjs.bitcoin.networks.blocknode;
setHdCoin(2941);
},
},
{
name: "tBND - Blocknode Testnet",
onSelect: function() {
network = bitcoinjs.bitcoin.networks.blocknode_testnet;
setHdCoin(1);
},
},
{
name: "BRIT - Britcoin",
onSelect: function() {

View File

@@ -183,5 +183,30 @@ bitcoinjs.bitcoin.networks.digibyte.p2wpkhInP2sh = {
pubKeyHash: 0x1e,
scriptHash: 0x3f,
wif: 0x80
};
bitcoinjs.bitcoin.networks.deimos.p2wpkh = {
baseNetwork: "deimos",
messagePrefix: '\x18Deimos Signed Message:\n',
bech32: 'dei',
bip32: {
public: 0x0488B21E,
private: 0x0488ADE4
},
pubKeyHash: 0x1f,
scriptHash: 0x21,
wif: 0x8a
};
bitcoinjs.bitcoin.networks.deimos.p2wpkhInP2sh = {
baseNetwork: "deimos",
messagePrefix: '\x18Deimos Signed Message:\n',
bech32: 'dei',
bip32: {
public: 0x0488B21E,
private: 0x0488ADE4
},
pubKeyHash: 0x1f,
scriptHash: 0x21,
wif: 0x8a
};
})();

View File

@@ -1362,7 +1362,21 @@ it('Allows selection of Safecoin', function(done) {
};
testNetwork(done, params);
});
it('Allows selection of Blocknode', function(done) {
var params = {
selectText: "BND - Blocknode",
firstAddress: "BG8xZSAur2jYLG9VXt8dYfkKxxeR7w9bSe",
};
testNetwork(done, params);
});
it('Allows selection of Blocknode Testnet', function(done) {
var params = {
selectText: "tBND - Blocknode Testnet",
firstAddress: "bSptsFyDktFSKpWveRywJsDoJA2TC6qfHv",
};
testNetwork(done, params);
});
// BIP39 seed is set from phrase
it('Sets the bip39 seed from the prhase', function(done) {
driver.findElement(By.css('.phrase'))