Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/crypter.h
Show First 20 Lines • Show All 128 Lines • ▼ Show 20 Lines | protected: | ||||
using CryptedKeyMap = | using CryptedKeyMap = | ||||
std::map<CKeyID, std::pair<CPubKey, std::vector<uint8_t>>>; | 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, | ||||
bool accept_no_keys = false); | |||||
CryptedKeyMap mapCryptedKeys GUARDED_BY(cs_KeyStore); | CryptedKeyMap mapCryptedKeys GUARDED_BY(cs_KeyStore); | ||||
public: | public: | ||||
CCryptoKeyStore() | CCryptoKeyStore() | ||||
: fUseCrypto(false), fDecryptionThoroughlyChecked(false) {} | : fUseCrypto(false), fDecryptionThoroughlyChecked(false) {} | ||||
bool IsCrypted() const { return fUseCrypto; } | bool IsCrypted() const { return fUseCrypto; } | ||||
bool IsLocked() const; | bool IsLocked() const; | ||||
Show All 18 Lines |