mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-02-14 11:15:51 +00:00
Update BIP32 wallet headers
This commit is contained in:
parent
258792c803
commit
403696f5e3
@ -34,8 +34,11 @@ public class DogecoinMainNetParams extends AbstractDogecoinParams {
|
||||
acceptableAddressCodes = new int[] { addressHeader, p2shHeader };
|
||||
port = 22556;
|
||||
packetMagic = 0xc0c0c0c0;
|
||||
bip32HeaderPub = 0x0488C42E; //The 4 byte header that serializes in base58 to "xpub". (?)
|
||||
bip32HeaderPriv = 0x0488E1F4; //The 4 byte header that serializes in base58 to "xprv" (?)
|
||||
// Note that while BIP44 makes HD wallets chain-agnostic, for legacy
|
||||
// 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.setTime(1386325540L);
|
||||
genesisBlock.setNonce(99943L);
|
||||
|
@ -52,8 +52,10 @@ public class DogecoinTestNet3Params extends AbstractDogecoinParams {
|
||||
alertSigningKey = Hex.decode("042756726da3c7ef515d89212ee1705023d14be389e25fe15611585661b9a20021908b2b80a3c7200a0139dd2b26946606aab0eef9aa7689a6dc2c7eee237fa834");
|
||||
|
||||
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;
|
||||
bip32HeaderPriv = 0x04358394;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user