| 319 | } |
| 320 | |
| 321 | bool LegacyDataSPKM::LoadCryptedKey(const CPubKey &vchPubKey, const std::vector<unsigned char> &vchCryptedSecret, bool checksum_valid) |
| 322 | { |
| 323 | // Set fDecryptionThoroughlyChecked to false when the checksum is invalid |
| 324 | if (!checksum_valid) { |
| 325 | fDecryptionThoroughlyChecked = false; |
| 326 | } |
| 327 | |
| 328 | return AddCryptedKeyInner(vchPubKey, vchCryptedSecret); |
| 329 | } |
| 330 | |
| 331 | bool LegacyDataSPKM::AddCryptedKeyInner(const CPubKey &vchPubKey, const std::vector<unsigned char> &vchCryptedSecret) |
| 332 | { |