Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/scriptpubkeyman.h
Show First 20 Lines • Show All 281 Lines • ▼ Show 20 Lines | public: | ||||
FillPSBT(PartiallySignedTransaction &psbt, | FillPSBT(PartiallySignedTransaction &psbt, | ||||
SigHashType sighash_type = SigHashType().withForkId(), | SigHashType sighash_type = SigHashType().withForkId(), | ||||
bool sign = true, bool bip32derivs = false) const { | bool sign = true, bool bip32derivs = false) const { | ||||
return TransactionError::INVALID_PSBT; | return TransactionError::INVALID_PSBT; | ||||
} | } | ||||
virtual uint256 GetID() const { return uint256(); } | virtual uint256 GetID() const { return uint256(); } | ||||
virtual void SetType(OutputType type, bool internal) {} | |||||
/** | /** | ||||
* Prepends the wallet name in logging output to ease debugging in | * Prepends the wallet name in logging output to ease debugging in | ||||
* multi-wallet use cases | * multi-wallet use cases | ||||
*/ | */ | ||||
template <typename... Params> | template <typename... Params> | ||||
void WalletLogPrintf(std::string fmt, Params... parameters) const { | void WalletLogPrintf(std::string fmt, Params... parameters) const { | ||||
LogPrintf(("%s " + fmt).c_str(), m_storage.GetDisplayName(), | LogPrintf(("%s " + fmt).c_str(), m_storage.GetDisplayName(), | ||||
parameters...); | parameters...); | ||||
▲ Show 20 Lines • Show All 162 Lines • ▼ Show 20 Lines | SigningResult SignMessage(const std::string &message, const PKHash &pkhash, | ||||
std::string &str_sig) const override; | std::string &str_sig) const override; | ||||
TransactionError | TransactionError | ||||
FillPSBT(PartiallySignedTransaction &psbt, | FillPSBT(PartiallySignedTransaction &psbt, | ||||
SigHashType sighash_type = SigHashType().withForkId(), | SigHashType sighash_type = SigHashType().withForkId(), | ||||
bool sign = true, bool bip32derivs = false) const override; | bool sign = true, bool bip32derivs = false) const override; | ||||
uint256 GetID() const override; | uint256 GetID() const override; | ||||
void SetType(OutputType type, bool internal) override; | |||||
// Map from Key ID to key metadata. | // Map from Key ID to key metadata. | ||||
std::map<CKeyID, CKeyMetadata> mapKeyMetadata GUARDED_BY(cs_KeyStore); | std::map<CKeyID, CKeyMetadata> mapKeyMetadata GUARDED_BY(cs_KeyStore); | ||||
// 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_KeyStore); | std::map<CScriptID, CKeyMetadata> m_script_metadata GUARDED_BY(cs_KeyStore); | ||||
//! 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; | ||||
▲ Show 20 Lines • Show All 140 Lines • Show Last 20 Lines |