mirror of
https://github.com/OneKeyHQ/bip39.git
synced 2026-04-29 21:46:00 +00:00
Added HUSH3 encoding and kept old as Legacy for users to be able to cross verify
This commit is contained in:
@@ -1462,6 +1462,17 @@ bitcoinjs.bitcoin.networks.hush = {
|
|||||||
wif: 0x80,
|
wif: 0x80,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
bitcoinjs.bitcoin.networks.hush3 = {
|
||||||
|
messagePrefix: '\x18Hush Signed Message:\n',
|
||||||
|
bip32: {
|
||||||
|
public: 0x0488B21E,
|
||||||
|
private: 0x0488ADE4,
|
||||||
|
},
|
||||||
|
pubKeyHash: 0x3C,
|
||||||
|
scriptHash: 0x55,
|
||||||
|
wif: 0xBC,
|
||||||
|
};
|
||||||
|
|
||||||
bitcoinjs.bitcoin.networks.zclassic = {
|
bitcoinjs.bitcoin.networks.zclassic = {
|
||||||
messagePrefix: '\x18Zcash Signed Message:\n',
|
messagePrefix: '\x18Zcash Signed Message:\n',
|
||||||
bip32: {
|
bip32: {
|
||||||
|
|||||||
+8
-1
@@ -2185,11 +2185,18 @@
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "HUSH - Hush",
|
name: "HUSH - Hush (Legacy)",
|
||||||
onSelect: function() {
|
onSelect: function() {
|
||||||
network = bitcoinjs.bitcoin.networks.hush;
|
network = bitcoinjs.bitcoin.networks.hush;
|
||||||
setHdCoin(197);
|
setHdCoin(197);
|
||||||
},
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "HUSH - Hush3",
|
||||||
|
onSelect: function() {
|
||||||
|
network = bitcoinjs.bitcoin.networks.hush3;
|
||||||
|
setHdCoin(197);
|
||||||
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "INSN - Insane",
|
name: "INSN - Insane",
|
||||||
|
|||||||
+8
-1
@@ -1441,11 +1441,18 @@ it('Allows selection of Callisto', function(done) {
|
|||||||
});
|
});
|
||||||
it('Allows selection of HUSH', function(done) {
|
it('Allows selection of HUSH', function(done) {
|
||||||
var params = {
|
var params = {
|
||||||
selectText: "HUSH - Hush",
|
selectText: "HUSH - Hush (Legacy)",
|
||||||
firstAddress: "t1g6rLXUnJaiJuu4q4zmJjoa9Gk4fwKpiuA",
|
firstAddress: "t1g6rLXUnJaiJuu4q4zmJjoa9Gk4fwKpiuA",
|
||||||
};
|
};
|
||||||
testNetwork(done, params);
|
testNetwork(done, params);
|
||||||
});
|
});
|
||||||
|
it('Allows selection of HUSH3', function(done) {
|
||||||
|
var params = {
|
||||||
|
selectText: "HUSH - Hush3",
|
||||||
|
firstAddress: "RXWSQhwvw5jHPGP8bjwJhWoRnMLBnuPDKD",
|
||||||
|
};
|
||||||
|
testNetwork(done, params);
|
||||||
|
});
|
||||||
it('Allows selection of ExchangeCoin', function(done) {
|
it('Allows selection of ExchangeCoin', function(done) {
|
||||||
var params = {
|
var params = {
|
||||||
selectText: "EXCC - ExchangeCoin",
|
selectText: "EXCC - ExchangeCoin",
|
||||||
|
|||||||
Reference in New Issue
Block a user