Bitcoin Core  21.99.0
P2P Digital Currency
Go to the documentation of this file.
1 // Copyright (c) 2009-2019 The Bitcoin Core developers
2 // Distributed under the MIT software license, see the accompanying
3 // file COPYING or
8 #include <psbt.h>
14  bool has_utxo;
15  bool is_final;
18  std::vector<CKeyID> missing_pubkeys;
19  std::vector<CKeyID> missing_sigs;
22 };
27 struct PSBTAnalysis {
31  std::vector<PSBTInputAnalysis> inputs;
33  std::string error;
35  void SetInvalid(std::string err_msg)
36  {
37  estimated_vsize = nullopt;
38  estimated_feerate = nullopt;
39  fee = nullopt;
40  inputs.clear();
41  next = PSBTRole::CREATOR;
42  error = err_msg;
43  }
44 };
54 #endif // BITCOIN_NODE_PSBT_H
bool has_utxo
Whether we have UTXO information for this input.
Definition: psbt.h:14
std::vector< CKeyID > missing_sigs
Pubkeys whose signatures are missing.
Definition: psbt.h:19
Holds an analysis of one input from a PSBT.
Definition: psbt.h:13
Optional< CFeeRate > estimated_feerate
Estimated feerate (fee / weight) of the transaction.
Definition: psbt.h:29
std::vector< PSBTInputAnalysis > inputs
More information about the individual inputs of the transaction.
Definition: psbt.h:31
PSBTAnalysis AnalyzePSBT(PartiallySignedTransaction psbtx)
Provides helpful miscellaneous information about where a PSBT is in the signing workflow.
Definition: psbt.cpp:15
PSBTRole next
Which of the BIP 174 roles needs to handle the transaction next.
Definition: psbt.h:32
Holds the results of AnalyzePSBT (miscellaneous information about a PSBT)
Definition: psbt.h:27
static auto & nullopt
Substitute for C++17 std::nullopt DEPRECATED use std::nullopt in new code.
Definition: optional.h:18
A version of CTransaction with the PSBT format.
Definition: psbt.h:390
std::vector< CKeyID > missing_pubkeys
Pubkeys whose BIP32 derivation path is missing.
Definition: psbt.h:18
Definition: psbt.h:559
Optional< CAmount > fee
Amount of fee being paid by the transaction.
Definition: psbt.h:30
uint160 missing_redeem_script
Hash160 of redeem script, if missing.
Definition: psbt.h:20
void SetInvalid(std::string err_msg)
Definition: psbt.h:35
Optional< size_t > estimated_vsize
Estimated weight of the transaction.
Definition: psbt.h:28
bool is_final
Whether the input has all required information including signatures.
Definition: psbt.h:15
PSBTRole next
Which of the BIP 174 roles needs to handle this input next.
Definition: psbt.h:16
uint256 missing_witness_script
SHA256 of witness script, if missing.
Definition: psbt.h:21
256-bit opaque blob.
Definition: uint256.h:124
160-bit opaque blob.
Definition: uint256.h:113
std::string error
Error message.
Definition: psbt.h:33
std::optional< T > Optional
Substitute for C++17 std::optional DEPRECATED use std::optional in new code.
Definition: optional.h:14