Bitcoin
psbt.h
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 http://www.opensource.org/licenses/mit-license.php.
4 
5 #ifndef BITCOIN_NODE_PSBT_H
6 #define BITCOIN_NODE_PSBT_H
7 
8 #include <psbt.h>
9 
14  bool has_utxo;
15  bool is_final;
17 
18  std::vector<CKeyID> missing_pubkeys;
19  std::vector<CKeyID> missing_sigs;
22 };
23 
27 struct PSBTAnalysis {
31  std::vector<PSBTInputAnalysis> inputs;
33 };
34 
42 
43 #endif // BITCOIN_NODE_PSBT_H
Optional< size_t > estimated_vsize
Estimated weight of the transaction.
Definition: psbt.h:28
PSBTAnalysis AnalyzePSBT(PartiallySignedTransaction psbtx)
Definition: psbt.cpp:13
PSBTRole next
Which of the BIP 174 roles needs to handle the transaction next.
Definition: psbt.h:32
std::vector< CKeyID > missing_pubkeys
Pubkeys whose BIP32 derivation path is missing.
Definition: psbt.h:18
Definition: psbt.h:13
std::vector< PSBTInputAnalysis > inputs
More information about the individual inputs of the transaction.
Definition: psbt.h:31
Definition: psbt.h:382
PSBTRole
Definition: psbt.h:554
Optional< CAmount > fee
Amount of fee being paid by the transaction.
Definition: psbt.h:30
Definition: psbt.h:27
uint256 missing_witness_script
SHA256 of witness script, if missing.
Definition: psbt.h:21
uint160 missing_redeem_script
Hash160 of redeem script, if missing.
Definition: psbt.h:20
PSBTRole next
Which of the BIP 174 roles needs to handle this input next.
Definition: psbt.h:16
Definition: uint256.h:121
Optional< CFeeRate > estimated_feerate
Estimated feerate (fee / weight) of the transaction.
Definition: psbt.h:29
bool is_final
Whether the input has all required information including signatures.
Definition: psbt.h:15
Definition: uint256.h:110
std::vector< CKeyID > missing_sigs
Pubkeys whose signatures are missing.
Definition: psbt.h:19
boost::optional< T > Optional
Substitute for C++17 std::optional.
Definition: optional.h:14
bool has_utxo
Whether we have UTXO information for this input.
Definition: psbt.h:14