mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 04:22:55 +01:00
Adapt BIP44 coin type 5 for Darkcoin (placeholder).
This commit is contained in:
parent
389ff61339
commit
0a1d09aeff
@ -71,6 +71,7 @@ public:
|
||||
base58Prefixes[SECRET_KEY] = list_of(204); // Darkcoin private keys start with '7' or 'X'
|
||||
base58Prefixes[EXT_PUBLIC_KEY] = list_of(0x02)(0xFE)(0x52)(0xF8); // Darkcoin BIP32 pubkeys start with 'drkv'
|
||||
base58Prefixes[EXT_SECRET_KEY] = list_of(0x02)(0xFE)(0x52)(0xCC); // Darkcoin BIP32 prvkeys start with 'drkp'
|
||||
base58Prefixes[EXT_COIN_TYPE] = list_of(0x80000005); // Darkcoin BIP44 coin type is '5'
|
||||
|
||||
// Convert the pnSeeds array into usable address objects.
|
||||
for (unsigned int i = 0; i < ARRAYLEN(pnSeed); i++)
|
||||
@ -138,6 +139,7 @@ public:
|
||||
base58Prefixes[SECRET_KEY] = list_of(239); // Testnet private keys start with '9' or 'c' (Bitcoin defaults)
|
||||
base58Prefixes[EXT_PUBLIC_KEY] = list_of(0x3a)(0x80)(0x61)(0xa0); // Testnet darkcoin BIP32 pubkeys start with 'DRKV'
|
||||
base58Prefixes[EXT_SECRET_KEY] = list_of(0x3a)(0x80)(0x58)(0x37); // Testnet darkcoin BIP32 prvkeys start with 'DRKP'
|
||||
base58Prefixes[EXT_COIN_TYPE] = list_of(0x80000001); // Testnet darkcoin BIP44 coin type is '5' (All coin's testnet default)
|
||||
}
|
||||
virtual Network NetworkID() const { return CChainParams::TESTNET; }
|
||||
};
|
||||
|
@ -45,9 +45,10 @@ public:
|
||||
enum Base58Type {
|
||||
PUBKEY_ADDRESS,
|
||||
SCRIPT_ADDRESS,
|
||||
SECRET_KEY,
|
||||
EXT_PUBLIC_KEY,
|
||||
EXT_SECRET_KEY,
|
||||
SECRET_KEY, // BIP16
|
||||
EXT_PUBLIC_KEY, // BIP32
|
||||
EXT_SECRET_KEY, // BIP32
|
||||
EXT_COIN_TYPE, // BIP44
|
||||
|
||||
MAX_BASE58_TYPES
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user