config - changed network bip32 values, testnet/regtest pubkey
mainnet bip32 seeds start with dpub/dprv testnet/regtest bip32 seeds start with DPUB/DPRV only create public testnet/regtest addresses starting with y
This commit is contained in:
parent
5fc47d4c7b
commit
c5004ce308
@ -121,10 +121,10 @@ public:
|
||||
base58Prefixes[SCRIPT_ADDRESS] = std::vector<unsigned char>(1,16);
|
||||
// Dash private keys start with '7' or 'X'
|
||||
base58Prefixes[SECRET_KEY] = std::vector<unsigned char>(1,204);
|
||||
// Dash BIP32 pubkeys start with 'drkv'
|
||||
base58Prefixes[EXT_PUBLIC_KEY] = boost::assign::list_of(0x02)(0xFE)(0x52)(0xF8).convert_to_container<std::vector<unsigned char> >();
|
||||
// Dash BIP32 prvkeys start with 'drkp'
|
||||
base58Prefixes[EXT_SECRET_KEY] = boost::assign::list_of(0x02)(0xFE)(0x52)(0xCC).convert_to_container<std::vector<unsigned char> >();
|
||||
// Dash BIP32 pubkeys start with 'dpub'
|
||||
base58Prefixes[EXT_PUBLIC_KEY] = boost::assign::list_of(0x02)(0xFD)(0xA9)(0x26).convert_to_container<std::vector<unsigned char> >();
|
||||
// Dash BIP32 prvkeys start with 'dprv'
|
||||
base58Prefixes[EXT_SECRET_KEY] = boost::assign::list_of(0x02)(0xFD)(0xA4)(0xEA).convert_to_container<std::vector<unsigned char> >();
|
||||
// Dash BIP44 coin type is '5'
|
||||
base58Prefixes[EXT_COIN_TYPE] = boost::assign::list_of(0x80000005);
|
||||
vFixedSeeds = std::vector<SeedSpec6>(pnSeed6_main, pnSeed6_main + ARRAYLEN(pnSeed6_main));
|
||||
@ -218,16 +218,16 @@ public:
|
||||
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<unsigned char>(1,139);
|
||||
// Testnet dash addresses start with 'y'
|
||||
base58Prefixes[PUBKEY_ADDRESS] = std::vector<unsigned char>(1,140);
|
||||
// Testnet dash script addresses start with '8' or '9'
|
||||
base58Prefixes[SCRIPT_ADDRESS] = std::vector<unsigned char>(1,19);
|
||||
// Testnet private keys start with '9' or 'c' (Bitcoin defaults)
|
||||
base58Prefixes[SECRET_KEY] = std::vector<unsigned char>(1,239);
|
||||
// Testnet dash BIP32 pubkeys start with 'DRKV'
|
||||
base58Prefixes[EXT_PUBLIC_KEY] = boost::assign::list_of(0x3A)(0x80)(0x61)(0xA0).convert_to_container<std::vector<unsigned char> >();
|
||||
// Testnet dash BIP32 prvkeys start with 'DRKP'
|
||||
base58Prefixes[EXT_SECRET_KEY] = boost::assign::list_of(0x3A)(0x80)(0x58)(0x37).convert_to_container<std::vector<unsigned char> >();
|
||||
// Testnet dash BIP32 pubkeys start with 'DPUB'
|
||||
base58Prefixes[EXT_PUBLIC_KEY] = boost::assign::list_of(0x3A)(0x59)(0xEA)(0x14).convert_to_container<std::vector<unsigned char> >();
|
||||
// Testnet dash BIP32 prvkeys start with 'DPRV'
|
||||
base58Prefixes[EXT_SECRET_KEY] = boost::assign::list_of(0x3A)(0x58)(0xF3)(0x42).convert_to_container<std::vector<unsigned char> >();
|
||||
// Testnet dash BIP44 coin type is '5' (All coin's testnet default)
|
||||
base58Prefixes[EXT_COIN_TYPE] = boost::assign::list_of(0x80000001);
|
||||
vFixedSeeds = std::vector<SeedSpec6>(pnSeed6_test, pnSeed6_test + ARRAYLEN(pnSeed6_test));
|
||||
@ -311,16 +311,16 @@ public:
|
||||
0,
|
||||
0
|
||||
};
|
||||
// Regtest dash addresses start with 'x' or 'y'
|
||||
base58Prefixes[PUBKEY_ADDRESS] = std::vector<unsigned char>(1,139);
|
||||
// Regtest dash addresses start with 'y'
|
||||
base58Prefixes[PUBKEY_ADDRESS] = std::vector<unsigned char>(1,140);
|
||||
// Regtest dash script addresses start with '8' or '9'
|
||||
base58Prefixes[SCRIPT_ADDRESS] = std::vector<unsigned char>(1,19);
|
||||
// Regtest private keys start with '9' or 'c' (Bitcoin defaults)
|
||||
base58Prefixes[SECRET_KEY] = std::vector<unsigned char>(1,239);
|
||||
// Regtest dash BIP32 pubkeys start with 'DRKV'
|
||||
base58Prefixes[EXT_PUBLIC_KEY] = boost::assign::list_of(0x3A)(0x80)(0x61)(0xA0).convert_to_container<std::vector<unsigned char> >();
|
||||
// Regtest dash BIP32 prvkeys start with 'DRKP'
|
||||
base58Prefixes[EXT_SECRET_KEY] = boost::assign::list_of(0x3A)(0x80)(0x58)(0x37).convert_to_container<std::vector<unsigned char> >();
|
||||
// Regtest dash BIP32 pubkeys start with 'DPUB'
|
||||
base58Prefixes[EXT_PUBLIC_KEY] = boost::assign::list_of(0x3A)(0x59)(0xEA)(0x14).convert_to_container<std::vector<unsigned char> >();
|
||||
// Regtest dash BIP32 prvkeys start with 'DPRV'
|
||||
base58Prefixes[EXT_SECRET_KEY] = boost::assign::list_of(0x3A)(0x58)(0xF3)(0x42).convert_to_container<std::vector<unsigned char> >();
|
||||
}
|
||||
};
|
||||
static CRegTestParams regTestParams;
|
||||
|
Loading…
Reference in New Issue
Block a user