Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/wallet.h
Show All 9 Lines | |||||
#include <amount.h> | #include <amount.h> | ||||
#include <interfaces/chain.h> | #include <interfaces/chain.h> | ||||
#include <interfaces/handler.h> | #include <interfaces/handler.h> | ||||
#include <outputtype.h> | #include <outputtype.h> | ||||
#include <primitives/blockhash.h> | #include <primitives/blockhash.h> | ||||
#include <psbt.h> | #include <psbt.h> | ||||
#include <tinyformat.h> | #include <tinyformat.h> | ||||
#include <ui_interface.h> | #include <ui_interface.h> | ||||
#include <util/message.h> | |||||
#include <util/strencodings.h> | #include <util/strencodings.h> | ||||
#include <util/system.h> | #include <util/system.h> | ||||
#include <util/translation.h> | #include <util/translation.h> | ||||
#include <validationinterface.h> | #include <validationinterface.h> | ||||
#include <wallet/coinselection.h> | #include <wallet/coinselection.h> | ||||
#include <wallet/crypter.h> | #include <wallet/crypter.h> | ||||
#include <wallet/rpcwallet.h> | #include <wallet/rpcwallet.h> | ||||
#include <wallet/scriptpubkeyman.h> | #include <wallet/scriptpubkeyman.h> | ||||
▲ Show 20 Lines • Show All 1,075 Lines • ▼ Show 20 Lines | public: | ||||
// Fetch the inputs and sign with SIGHASH_ALL. | // Fetch the inputs and sign with SIGHASH_ALL. | ||||
bool SignTransaction(CMutableTransaction &tx) const | bool SignTransaction(CMutableTransaction &tx) const | ||||
EXCLUSIVE_LOCKS_REQUIRED(cs_wallet); | EXCLUSIVE_LOCKS_REQUIRED(cs_wallet); | ||||
// Sign the tx given the input coins and sighash. | // Sign the tx given the input coins and sighash. | ||||
bool SignTransaction(CMutableTransaction &tx, | bool SignTransaction(CMutableTransaction &tx, | ||||
const std::map<COutPoint, Coin> &coins, | const std::map<COutPoint, Coin> &coins, | ||||
SigHashType sighash, | SigHashType sighash, | ||||
std::map<int, std::string> &input_errors) const; | std::map<int, std::string> &input_errors) const; | ||||
SigningResult SignMessage(const std::string &message, const PKHash &pkhash, | |||||
std::string &str_sig) const; | |||||
/** | /** | ||||
* Fills out a PSBT with information from the wallet. Fills in UTXOs if we | * Fills out a PSBT with information from the wallet. Fills in UTXOs if we | ||||
* have them. Tries to sign if sign=true. Sets `complete` if the PSBT is now | * have them. Tries to sign if sign=true. Sets `complete` if the PSBT is now | ||||
* complete (i.e. has all required signatures or signature-parts, and is | * complete (i.e. has all required signatures or signature-parts, and is | ||||
* ready to finalize.) Sets `error` and returns false if something goes | * ready to finalize.) Sets `error` and returns false if something goes | ||||
* wrong. | * wrong. | ||||
* | * | ||||
▲ Show 20 Lines • Show All 439 Lines • Show Last 20 Lines |