From 024e255a5b19e7bcdf20d059853e34489419cb98 Mon Sep 17 00:00:00 2001 From: vertoe Date: Wed, 31 Dec 2014 13:50:14 +0100 Subject: [PATCH] Update BIP32 base58 address prefixes to darkcoin uniques. --- src/chainparams.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/chainparams.cpp b/src/chainparams.cpp index fb9311e2ca..6ee12a59af 100644 --- a/src/chainparams.cpp +++ b/src/chainparams.cpp @@ -66,11 +66,11 @@ public: vSeeds.push_back(CDNSSeedData("darkcoin.qa", "dnsseed.darkcoin.qa")); vSeeds.push_back(CDNSSeedData("masternode.io", "dnsseed.masternode.io")); - base58Prefixes[PUBKEY_ADDRESS] = list_of(76); // Darkcoin addresses start with 'X' - base58Prefixes[SCRIPT_ADDRESS] = list_of(16); // Script addresses start with '7' - base58Prefixes[SECRET_KEY] = list_of(204); - base58Prefixes[EXT_PUBLIC_KEY] = list_of(0x04)(0x88)(0xB2)(0x1E); - base58Prefixes[EXT_SECRET_KEY] = list_of(0x04)(0x88)(0xAD)(0xE4); + base58Prefixes[PUBKEY_ADDRESS] = list_of( 76); // Darkcoin addresses start with 'X' + base58Prefixes[SCRIPT_ADDRESS] = list_of( 16); // Darkcoin script addresses start with '7' + 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' // Convert the pnSeeds array into usable address objects. for (unsigned int i = 0; i < ARRAYLEN(pnSeed); i++) @@ -133,11 +133,11 @@ public: vSeeds.push_back(CDNSSeedData("darkcoin.qa", "testnet-seed.darkcoin.qa")); 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[SCRIPT_ADDRESS] = list_of(19); // Testnet script addresses start with '8' or '9' - base58Prefixes[SECRET_KEY] = list_of(239); - base58Prefixes[EXT_PUBLIC_KEY] = list_of(0x04)(0x35)(0x87)(0xCF); - base58Prefixes[EXT_SECRET_KEY] = list_of(0x04)(0x35)(0x83)(0x94); + base58Prefixes[PUBKEY_ADDRESS] = list_of(139); // Testnet darkcoin addresses start with 'x' or 'y' + base58Prefixes[SCRIPT_ADDRESS] = list_of( 19); // Testnet darkcoin script addresses start with '8' or '9' + 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' } virtual Network NetworkID() const { return CChainParams::TESTNET; } };