Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/crypter.h
Show First 20 Lines • Show All 120 Lines • ▼ Show 20 Lines | private: | ||||
//! if fUseCrypto is true, mapKeys must be empty | //! if fUseCrypto is true, mapKeys must be empty | ||||
//! if fUseCrypto is false, vMasterKey must be empty | //! if fUseCrypto is false, vMasterKey must be empty | ||||
std::atomic<bool> fUseCrypto; | std::atomic<bool> fUseCrypto; | ||||
//! keeps track of whether Unlock has run a thorough check before | //! keeps track of whether Unlock has run a thorough check before | ||||
bool fDecryptionThoroughlyChecked; | bool fDecryptionThoroughlyChecked; | ||||
protected: | protected: | ||||
using CryptedKeyMap = | |||||
std::map<CKeyID, std::pair<CPubKey, std::vector<uint8_t>>>; | |||||
bool SetCrypted(); | bool SetCrypted(); | ||||
//! will encrypt previously unencrypted keys | //! will encrypt previously unencrypted keys | ||||
bool EncryptKeys(CKeyingMaterial &vMasterKeyIn); | bool EncryptKeys(CKeyingMaterial &vMasterKeyIn); | ||||
bool Unlock(const CKeyingMaterial &vMasterKeyIn); | bool Unlock(const CKeyingMaterial &vMasterKeyIn); | ||||
CryptedKeyMap mapCryptedKeys GUARDED_BY(cs_KeyStore); | CryptedKeyMap mapCryptedKeys GUARDED_BY(cs_KeyStore); | ||||
Show All 24 Lines |