mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-07-31 20:11:23 +00:00
Update BIP32 wallet headers
This commit is contained in:
@@ -34,8 +34,11 @@ public class DogecoinMainNetParams extends AbstractDogecoinParams {
|
|||||||
acceptableAddressCodes = new int[] { addressHeader, p2shHeader };
|
acceptableAddressCodes = new int[] { addressHeader, p2shHeader };
|
||||||
port = 22556;
|
port = 22556;
|
||||||
packetMagic = 0xc0c0c0c0;
|
packetMagic = 0xc0c0c0c0;
|
||||||
bip32HeaderPub = 0x0488C42E; //The 4 byte header that serializes in base58 to "xpub". (?)
|
// Note that while BIP44 makes HD wallets chain-agnostic, for legacy
|
||||||
bip32HeaderPriv = 0x0488E1F4; //The 4 byte header that serializes in base58 to "xprv" (?)
|
// reasons we use a Doge-specific header for main net. At some point
|
||||||
|
// we'll add independent headers for BIP32 legacy and BIP44.
|
||||||
|
bip32HeaderPub = 0x02facafd; //The 4 byte header that serializes in base58 to "dgub".
|
||||||
|
bip32HeaderPriv = 0x02fac398; //The 4 byte header that serializes in base58 to "dgpv".
|
||||||
genesisBlock.setDifficultyTarget(0x1e0ffff0L);
|
genesisBlock.setDifficultyTarget(0x1e0ffff0L);
|
||||||
genesisBlock.setTime(1386325540L);
|
genesisBlock.setTime(1386325540L);
|
||||||
genesisBlock.setNonce(99943L);
|
genesisBlock.setNonce(99943L);
|
||||||
|
@@ -52,8 +52,10 @@ public class DogecoinTestNet3Params extends AbstractDogecoinParams {
|
|||||||
alertSigningKey = Hex.decode("042756726da3c7ef515d89212ee1705023d14be389e25fe15611585661b9a20021908b2b80a3c7200a0139dd2b26946606aab0eef9aa7689a6dc2c7eee237fa834");
|
alertSigningKey = Hex.decode("042756726da3c7ef515d89212ee1705023d14be389e25fe15611585661b9a20021908b2b80a3c7200a0139dd2b26946606aab0eef9aa7689a6dc2c7eee237fa834");
|
||||||
|
|
||||||
dnsSeeds = new String[] {
|
dnsSeeds = new String[] {
|
||||||
"testnets.chain.so" // Chain.so
|
// "testnets.chain.so" // Chain.so
|
||||||
};
|
};
|
||||||
|
// Note this is the same as the BIP32 testnet, as BIP44 makes HD wallets
|
||||||
|
// chain agnostic. Dogecoin mainnet has its own headers for legacy reasons.
|
||||||
bip32HeaderPub = 0x043587CF;
|
bip32HeaderPub = 0x043587CF;
|
||||||
bip32HeaderPriv = 0x04358394;
|
bip32HeaderPriv = 0x04358394;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user