Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/scriptpubkeyman.h
Show First 20 Lines • Show All 308 Lines • ▼ Show 20 Lines | public: | ||||
/** Keypool has new keys */ | /** Keypool has new keys */ | ||||
boost::signals2::signal<void()> NotifyCanGetAddressesChanged; | boost::signals2::signal<void()> NotifyCanGetAddressesChanged; | ||||
}; | }; | ||||
class LegacyScriptPubKeyMan : public ScriptPubKeyMan, | class LegacyScriptPubKeyMan : public ScriptPubKeyMan, | ||||
public FillableSigningProvider { | public FillableSigningProvider { | ||||
private: | private: | ||||
//! keeps track of whether Unlock has run a thorough check before | //! keeps track of whether Unlock has run a thorough check before | ||||
bool fDecryptionThoroughlyChecked = false; | bool fDecryptionThoroughlyChecked = true; | ||||
using WatchOnlySet = std::set<CScript>; | using WatchOnlySet = std::set<CScript>; | ||||
using WatchKeyMap = std::map<CKeyID, CPubKey>; | using WatchKeyMap = std::map<CKeyID, CPubKey>; | ||||
WalletBatch *encrypted_batch GUARDED_BY(cs_KeyStore) = nullptr; | WalletBatch *encrypted_batch GUARDED_BY(cs_KeyStore) = nullptr; | ||||
using CryptedKeyMap = | using CryptedKeyMap = | ||||
std::map<CKeyID, std::pair<CPubKey, std::vector<uint8_t>>>; | std::map<CKeyID, std::pair<CPubKey, std::vector<uint8_t>>>; | ||||
▲ Show 20 Lines • Show All 159 Lines • ▼ Show 20 Lines | public: | ||||
//! 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); | ||||
//! 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, | ||||
bool checksum_valid); | |||||
void UpdateTimeFirstKey(int64_t nCreateTime) | void UpdateTimeFirstKey(int64_t nCreateTime) | ||||
EXCLUSIVE_LOCKS_REQUIRED(cs_KeyStore); | EXCLUSIVE_LOCKS_REQUIRED(cs_KeyStore); | ||||
//! Adds a CScript to the store | //! Adds a CScript to the store | ||||
bool LoadCScript(const CScript &redeemScript); | bool LoadCScript(const CScript &redeemScript); | ||||
//! Load metadata (used by LoadWallet) | //! Load metadata (used by LoadWallet) | ||||
void LoadKeyMetadata(const CKeyID &keyID, const CKeyMetadata &metadata); | void LoadKeyMetadata(const CKeyID &keyID, const CKeyMetadata &metadata); | ||||
void LoadScriptMetadata(const CScriptID &script_id, | void LoadScriptMetadata(const CScriptID &script_id, | ||||
const CKeyMetadata &metadata); | const CKeyMetadata &metadata); | ||||
▲ Show 20 Lines • Show All 258 Lines • Show Last 20 Lines |