nDerivationMethod = 1;
vchOtherDerivationParameters = std::vector<unsigned char>(0);
}
-
- CMasterKey(unsigned int nDerivationMethodIndex)
- {
- switch (nDerivationMethodIndex)
- {
- case 0: // sha512
- default:
- nDeriveIterations = 25000;
- nDerivationMethod = 0;
- vchOtherDerivationParameters = std::vector<unsigned char>(0);
- break;
-
- case 1: // scrypt+sha512
- nDeriveIterations = 10000;
- nDerivationMethod = 1;
- vchOtherDerivationParameters = std::vector<unsigned char>(0);
- break;
- }
- }
-
};
typedef std::vector<unsigned char, secure_allocator<unsigned char> > CKeyingMaterial;
std::string strWalletFileName;
bool fConfChange;
unsigned int nNodeLifespan;
-unsigned int nDerivationMethodIndex;
unsigned int nMinerSleep;
bool fUseFastIndex;
bool fUseFastStakeMiner;
CheckpointsMode = Checkpoints::PERMISSIVE;
}
- nDerivationMethodIndex = 0;
-
fTestNet = GetBoolArg("-testnet");
if (fTestNet) {
SoftSetBoolArg("-irc", true);
extern int64_t nTransactionFee;
extern int64_t nMinimumInputValue;
extern bool fUseFastIndex;
-extern unsigned int nDerivationMethodIndex;
extern int nScriptCheckThreads;
extern const uint256 entropyStore[38];
vMasterKey.resize(WALLET_CRYPTO_KEY_SIZE);
RAND_bytes(&vMasterKey[0], WALLET_CRYPTO_KEY_SIZE);
- CMasterKey kMasterKey(nDerivationMethodIndex);
+ CMasterKey kMasterKey;
RandAddSeedPerfmon();
kMasterKey.vchSalt.resize(WALLET_CRYPTO_SALT_SIZE);