mirror of
https://github.com/OneKeyHQ/bip39.git
synced 2026-04-05 18:43:47 +00:00
Merge pull request #322 from EthersocialNetwork/esn
add Ethersocial Network(ESN) support
This commit is contained in:
@@ -918,7 +918,9 @@
|
||||
|| (networks[DOM.network.val()].name == "POA - Poa")
|
||||
|| (networks[DOM.network.val()].name == "EXP - Expanse")
|
||||
|| (networks[DOM.network.val()].name == "CLO - Callisto")
|
||||
|| (networks[DOM.network.val()].name == "DXN - DEXON")) {
|
||||
|| (networks[DOM.network.val()].name == "DXN - DEXON")
|
||||
|| (networks[DOM.network.val()].name == "ESN - Ethersocial Network")
|
||||
) {
|
||||
var privKeyBuffer = keyPair.d.toBuffer(32);
|
||||
privkey = privKeyBuffer.toString('hex');
|
||||
var addressBuffer = ethUtil.privateToAddress(privKeyBuffer);
|
||||
@@ -1991,6 +1993,14 @@
|
||||
setHdCoin(151);
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "ESN - Ethersocial Network",
|
||||
segwitAvailable: false,
|
||||
onSelect: function() {
|
||||
network = bitcoinjs.bitcoin.networks.bitcoin;
|
||||
setHdCoin(31102);
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "ETC - Ethereum Classic",
|
||||
segwitAvailable: false,
|
||||
|
||||
@@ -1434,6 +1434,13 @@ it('Allows selection of DEXON', function(done) {
|
||||
};
|
||||
testNetwork(done, params);
|
||||
});
|
||||
it('Allows selection of Ethersocial Network', function(done) {
|
||||
var params = {
|
||||
selectText: "ESN - Ethersocial Network",
|
||||
firstAddress: "0x6EE99Be2A0C7F887a71e21C8608ACF0aa0D2b767",
|
||||
};
|
||||
testNetwork(done, params);
|
||||
});
|
||||
|
||||
// BIP39 seed is set from phrase
|
||||
it('Sets the bip39 seed from the prhase', function(done) {
|
||||
|
||||
Reference in New Issue
Block a user