Merge pull request #332 from aitorp6/master

Add DeepOnion (ONION)
This commit is contained in:
iancoleman
2019-05-30 10:38:55 +10:00
committed by GitHub
3 changed files with 26 additions and 1 deletions

View File

@@ -1537,4 +1537,15 @@ bitcoinjs.bitcoin.networks.blockstamp = {
pubKeyHash: 0x00,
scriptHash: 0x05,
wif: 0x80,
};
};
bitcoinjs.bitcoin.networks.deeponion = {
messagePrefix: 'x18DeepOnion Signed Message:\n',
bip32: {
public: 0x0488B21E,
private: 0x0488ADE4,
},
pubKeyHash: 0x1F,
scriptHash: 0x4E,
wif: 0x9F,
};

View File

@@ -2368,6 +2368,13 @@
setHdCoin(200);
},
},
{
name: "ONION - DeepOnion",
onSelect: function() {
network = bitcoinjs.bitcoin.networks.deeponion;
setHdCoin(305);
},
},
{
name: "ONX - Onixcoin",
onSelect: function() {

View File

@@ -1077,6 +1077,13 @@ it('Allows selection of Omnicore', function(done) {
};
testNetwork(done, params);
});
it('Allows selection of DeepOnion', function(done) {
var params = {
selectText: "ONION - DeepOnion",
firstAddress: "DVioZ2Rjc9krDf5bbHuixznSDumzvGpzVw",
};
testNetwork(done, params);
});
it('Allows selection of Pesobit', function(done) {
var params = {
selectText: "PSB - Pesobit",