mirror of
https://github.com/dashpay/dash.git
synced 2024-12-27 04:52:59 +01:00
Merge pull request #93 from vertoe/devel-0.9-bip0032
Update BIP32 base58 address prefixes to darkcoin uniques.
This commit is contained in:
commit
a29b991091
@ -67,10 +67,10 @@ public:
|
|||||||
vSeeds.push_back(CDNSSeedData("masternode.io", "dnsseed.masternode.io"));
|
vSeeds.push_back(CDNSSeedData("masternode.io", "dnsseed.masternode.io"));
|
||||||
|
|
||||||
base58Prefixes[PUBKEY_ADDRESS] = list_of( 76); // Darkcoin addresses start with 'X'
|
base58Prefixes[PUBKEY_ADDRESS] = list_of( 76); // Darkcoin addresses start with 'X'
|
||||||
base58Prefixes[SCRIPT_ADDRESS] = list_of(16); // Script addresses start with '7'
|
base58Prefixes[SCRIPT_ADDRESS] = list_of( 16); // Darkcoin script addresses start with '7'
|
||||||
base58Prefixes[SECRET_KEY] = list_of(204);
|
base58Prefixes[SECRET_KEY] = list_of(204); // Darkcoin private keys start with '7' or 'X'
|
||||||
base58Prefixes[EXT_PUBLIC_KEY] = list_of(0x04)(0x88)(0xB2)(0x1E);
|
base58Prefixes[EXT_PUBLIC_KEY] = list_of(0x02)(0xFE)(0x52)(0xF8); // Darkcoin BIP32 pubkeys start with 'drkv'
|
||||||
base58Prefixes[EXT_SECRET_KEY] = list_of(0x04)(0x88)(0xAD)(0xE4);
|
base58Prefixes[EXT_SECRET_KEY] = list_of(0x02)(0xFE)(0x52)(0xCC); // Darkcoin BIP32 prvkeys start with 'drkp'
|
||||||
|
|
||||||
// Convert the pnSeeds array into usable address objects.
|
// Convert the pnSeeds array into usable address objects.
|
||||||
for (unsigned int i = 0; i < ARRAYLEN(pnSeed); i++)
|
for (unsigned int i = 0; i < ARRAYLEN(pnSeed); i++)
|
||||||
@ -134,10 +134,10 @@ public:
|
|||||||
vSeeds.push_back(CDNSSeedData("masternode.io", "test.dnsseed.masternode.io"));
|
vSeeds.push_back(CDNSSeedData("masternode.io", "test.dnsseed.masternode.io"));
|
||||||
|
|
||||||
base58Prefixes[PUBKEY_ADDRESS] = list_of(139); // Testnet darkcoin addresses start with 'x' or 'y'
|
base58Prefixes[PUBKEY_ADDRESS] = list_of(139); // Testnet darkcoin addresses start with 'x' or 'y'
|
||||||
base58Prefixes[SCRIPT_ADDRESS] = list_of(19); // Testnet script addresses start with '8' or '9'
|
base58Prefixes[SCRIPT_ADDRESS] = list_of( 19); // Testnet darkcoin script addresses start with '8' or '9'
|
||||||
base58Prefixes[SECRET_KEY] = list_of(239);
|
base58Prefixes[SECRET_KEY] = list_of(239); // Testnet private keys start with '9' or 'c' (Bitcoin defaults)
|
||||||
base58Prefixes[EXT_PUBLIC_KEY] = list_of(0x04)(0x35)(0x87)(0xCF);
|
base58Prefixes[EXT_PUBLIC_KEY] = list_of(0x3a)(0x80)(0x61)(0xa0); // Testnet darkcoin BIP32 pubkeys start with 'DRKV'
|
||||||
base58Prefixes[EXT_SECRET_KEY] = list_of(0x04)(0x35)(0x83)(0x94);
|
base58Prefixes[EXT_SECRET_KEY] = list_of(0x3a)(0x80)(0x58)(0x37); // Testnet darkcoin BIP32 prvkeys start with 'DRKP'
|
||||||
}
|
}
|
||||||
virtual Network NetworkID() const { return CChainParams::TESTNET; }
|
virtual Network NetworkID() const { return CChainParams::TESTNET; }
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user