Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/scriptpubkeyman.h
Show First 20 Lines • Show All 305 Lines • ▼ Show 20 Lines | public: | ||||
// Map from Script ID to key metadata (for watch-only keys). | // Map from Script ID to key metadata (for watch-only keys). | ||||
std::map<CScriptID, CKeyMetadata> m_script_metadata GUARDED_BY(cs_wallet); | std::map<CScriptID, CKeyMetadata> m_script_metadata GUARDED_BY(cs_wallet); | ||||
//! Adds a key to the store, and saves it to disk. | //! Adds a key to the store, and saves it to disk. | ||||
bool AddKeyPubKey(const CKey &key, const CPubKey &pubkey) override | bool AddKeyPubKey(const CKey &key, const CPubKey &pubkey) override | ||||
EXCLUSIVE_LOCKS_REQUIRED(cs_wallet); | EXCLUSIVE_LOCKS_REQUIRED(cs_wallet); | ||||
//! Adds a key to the store, without saving it to disk (used by LoadWallet) | //! Adds a key to the store, without saving it to disk (used by LoadWallet) | ||||
bool LoadKey(const CKey &key, const CPubKey &pubkey) { | bool LoadKey(const CKey &key, const CPubKey &pubkey); | ||||
return AddKeyPubKeyInner(key, pubkey); | |||||
} | |||||
//! Adds an encrypted key to the store, and saves it to disk. | //! Adds an encrypted key to the store, and saves it to disk. | ||||
bool AddCryptedKey(const CPubKey &vchPubKey, | bool AddCryptedKey(const CPubKey &vchPubKey, | ||||
const std::vector<uint8_t> &vchCryptedSecret); | const std::vector<uint8_t> &vchCryptedSecret); | ||||
//! Adds an encrypted key to the store, without saving it to disk (used by | //! Adds an encrypted key to the store, without saving it to disk (used by | ||||
//! LoadWallet) | //! LoadWallet) | ||||
bool LoadCryptedKey(const CPubKey &vchPubKey, | bool LoadCryptedKey(const CPubKey &vchPubKey, | ||||
const std::vector<uint8_t> &vchCryptedSecret); | const std::vector<uint8_t> &vchCryptedSecret); | ||||
void UpdateTimeFirstKey(int64_t nCreateTime) | void UpdateTimeFirstKey(int64_t nCreateTime) | ||||
▲ Show 20 Lines • Show All 121 Lines • Show Last 20 Lines |