diff --git a/src/chainparams.cpp b/src/chainparams.cpp index 339b0b8a7f6e9..3cf42011931d5 100644 --- a/src/chainparams.cpp +++ b/src/chainparams.cpp @@ -121,10 +121,10 @@ class CMainParams : public CChainParams { base58Prefixes[SCRIPT_ADDRESS] = std::vector(1,16); // Dash private keys start with '7' or 'X' base58Prefixes[SECRET_KEY] = std::vector(1,204); - // Dash BIP32 pubkeys start with 'drkv' - base58Prefixes[EXT_PUBLIC_KEY] = boost::assign::list_of(0x02)(0xFE)(0x52)(0xF8).convert_to_container >(); - // Dash BIP32 prvkeys start with 'drkp' - base58Prefixes[EXT_SECRET_KEY] = boost::assign::list_of(0x02)(0xFE)(0x52)(0xCC).convert_to_container >(); + // Dash BIP32 pubkeys start with 'dpub' + base58Prefixes[EXT_PUBLIC_KEY] = boost::assign::list_of(0x02)(0xFD)(0xA9)(0x26).convert_to_container >(); + // Dash BIP32 prvkeys start with 'dprv' + base58Prefixes[EXT_SECRET_KEY] = boost::assign::list_of(0x02)(0xFD)(0xA4)(0xEA).convert_to_container >(); // Dash BIP44 coin type is '5' base58Prefixes[EXT_COIN_TYPE] = boost::assign::list_of(0x80000005); vFixedSeeds = std::vector(pnSeed6_main, pnSeed6_main + ARRAYLEN(pnSeed6_main)); @@ -218,16 +218,16 @@ class CTestNetParams : public CChainParams { vSeeds.push_back(CDNSSeedData("darkcoin.qa", "testnet-seed.darkcoin.qa")); vSeeds.push_back(CDNSSeedData("masternode.io", "test.dnsseed.masternode.io")); - // Testnet dash addresses start with 'x' or 'y' - base58Prefixes[PUBKEY_ADDRESS] = std::vector(1,139); + // Testnet dash addresses start with 'y' + base58Prefixes[PUBKEY_ADDRESS] = std::vector(1,140); // Testnet dash script addresses start with '8' or '9' base58Prefixes[SCRIPT_ADDRESS] = std::vector(1,19); // Testnet private keys start with '9' or 'c' (Bitcoin defaults) base58Prefixes[SECRET_KEY] = std::vector(1,239); - // Testnet dash BIP32 pubkeys start with 'DRKV' - base58Prefixes[EXT_PUBLIC_KEY] = boost::assign::list_of(0x3A)(0x80)(0x61)(0xA0).convert_to_container >(); - // Testnet dash BIP32 prvkeys start with 'DRKP' - base58Prefixes[EXT_SECRET_KEY] = boost::assign::list_of(0x3A)(0x80)(0x58)(0x37).convert_to_container >(); + // Testnet dash BIP32 pubkeys start with 'DPUB' + base58Prefixes[EXT_PUBLIC_KEY] = boost::assign::list_of(0x3A)(0x59)(0xEA)(0x14).convert_to_container >(); + // Testnet dash BIP32 prvkeys start with 'DPRV' + base58Prefixes[EXT_SECRET_KEY] = boost::assign::list_of(0x3A)(0x58)(0xF3)(0x42).convert_to_container >(); // Testnet dash BIP44 coin type is '5' (All coin's testnet default) base58Prefixes[EXT_COIN_TYPE] = boost::assign::list_of(0x80000001); vFixedSeeds = std::vector(pnSeed6_test, pnSeed6_test + ARRAYLEN(pnSeed6_test)); @@ -311,16 +311,16 @@ class CRegTestParams : public CChainParams { 0, 0 }; - // Regtest dash addresses start with 'x' or 'y' - base58Prefixes[PUBKEY_ADDRESS] = std::vector(1,139); + // Regtest dash addresses start with 'y' + base58Prefixes[PUBKEY_ADDRESS] = std::vector(1,140); // Regtest dash script addresses start with '8' or '9' base58Prefixes[SCRIPT_ADDRESS] = std::vector(1,19); // Regtest private keys start with '9' or 'c' (Bitcoin defaults) base58Prefixes[SECRET_KEY] = std::vector(1,239); - // Regtest dash BIP32 pubkeys start with 'DRKV' - base58Prefixes[EXT_PUBLIC_KEY] = boost::assign::list_of(0x3A)(0x80)(0x61)(0xA0).convert_to_container >(); - // Regtest dash BIP32 prvkeys start with 'DRKP' - base58Prefixes[EXT_SECRET_KEY] = boost::assign::list_of(0x3A)(0x80)(0x58)(0x37).convert_to_container >(); + // Regtest dash BIP32 pubkeys start with 'DPUB' + base58Prefixes[EXT_PUBLIC_KEY] = boost::assign::list_of(0x3A)(0x59)(0xEA)(0x14).convert_to_container >(); + // Regtest dash BIP32 prvkeys start with 'DPRV' + base58Prefixes[EXT_SECRET_KEY] = boost::assign::list_of(0x3A)(0x58)(0xF3)(0x42).convert_to_container >(); } }; static CRegTestParams regTestParams;