void CTransactcoinSecret::SetKey(const CKey& vchSecret) { assert(vchSecret.IsValid()); SetData(Params().Base58Prefix(CChainParams::SECRET_KEY), vchSecret.begin(), vchSecret.size()); if (vchSecret.IsCompressed()) vchData.push_back(1); }
void CBitcoinSecret::SetKey(const CKey& vchSecret, std::vector<unsigned char> prefix) { assert(vchSecret.IsValid()); SetData(prefix, vchSecret.begin(), vchSecret.size()); if (vchSecret.IsCompressed()) vchData.push_back(1); }
void CSharkfundSecret::SetKey(const CKey& vchSecret) { assert(vchSecret.IsValid()); SetData(SysCfg().Base58Prefix(CBaseParams::SECRET_KEY), vchSecret.begin(), vchSecret.size()); if (vchSecret.IsCompressed()) vchData.push_back(1); }