12 for (
unsigned int i = 0; i < psbtx.
tx->vin.size(); ++i) {
13 const CTxIn& txin = psbtx.
tx->vin[i];
28 const auto it = pwallet->mapWallet.find(txhash);
29 if (
it != pwallet->mapWallet.end()) {
58 std::unique_ptr<SigningProvider> provider = pwallet->
GetSigningProvider(script, sigdata);
68 for (
unsigned int i = 0; i < psbtx.
tx->vout.size(); ++i) {
69 const CTxOut& out = psbtx.
tx->vout.at(i);
Optional< CMutableTransaction > tx
bool SignPSBTInput(const SigningProvider &provider, PartiallySignedTransaction &psbt, int index, int sighash, SignatureData *out_sigdata, bool use_dummy)
Signs a PSBTInput, verifying that all provided data matches what is being signed. ...
std::unique_ptr< SigningProvider > GetSigningProvider(const CScript &script) const
Get the SigningProvider for a script.
A version of CTransaction with the PSBT format.
TransactionError FillPSBT(const CWallet *pwallet, PartiallySignedTransaction &psbtx, bool &complete, int sighash_type, bool sign, bool bip32derivs)
Fills out a PSBT with information from the wallet.
An input of a transaction.
An output of a transaction.
void UpdatePSBTOutput(const SigningProvider &provider, PartiallySignedTransaction &psbt, int index)
Updates a PSBTOutput with information from provider.
std::vector< PSBTInput > inputs
A transaction with a bunch of additional info that only the owner cares about.
Serialized script, used inside transaction inputs and outputs.
A CWallet maintains a set of transactions and balances, and provides the ability to create new transa...
bool PSBTInputSigned(const PSBTInput &input)
Checks whether a PSBTInput is already signed.