![]() |
Bitcoin Core 31.1.0
P2P Digital Currency
|
A version of CTransaction with the PSBT format. More...
#include <psbt.h>
Public Member Functions | |
| bool | IsNull () const |
| uint32_t | GetVersion () const |
| bool | Merge (const PartiallySignedTransaction &psbt) |
| Merge psbt into this. | |
| bool | AddInput (const CTxIn &txin, PSBTInput &psbtin) |
| bool | AddOutput (const CTxOut &txout, const PSBTOutput &psbtout) |
| PartiallySignedTransaction ()=default | |
| PartiallySignedTransaction (const CMutableTransaction &tx) | |
| bool | GetInputUTXO (CTxOut &utxo, int input_index) const |
| Finds the UTXO for a given input index. | |
| template<typename Stream> | |
| void | Serialize (Stream &s) const |
| template<typename Stream> | |
| void | Unserialize (Stream &s) |
| template<typename Stream> | |
| PartiallySignedTransaction (deserialize_type, Stream &s) | |
Public Attributes | |
| std::optional< CMutableTransaction > | tx |
| std::map< KeyOriginInfo, std::set< CExtPubKey > > | m_xpubs |
| std::vector< PSBTInput > | inputs |
| std::vector< PSBTOutput > | outputs |
| std::map< std::vector< unsigned char >, std::vector< unsigned char > > | unknown |
| std::optional< uint32_t > | m_version |
| std::set< PSBTProprietary > | m_proprietary |
A version of CTransaction with the PSBT format.
|
default |
|
explicit |
|
inline |
| bool PartiallySignedTransaction::AddOutput | ( | const CTxOut & | txout, |
| const PSBTOutput & | psbtout ) |
| bool PartiallySignedTransaction::GetInputUTXO | ( | CTxOut & | utxo, |
| int | input_index ) const |
Finds the UTXO for a given input index.
| [out] | utxo | The UTXO of the input if found |
| [in] | input_index | Index of the input to retrieve the UTXO of |
Definition at line 72 of file psbt.cpp.
| uint32_t PartiallySignedTransaction::GetVersion | ( | ) | const |
| bool PartiallySignedTransaction::IsNull | ( | ) | const |
|
nodiscard |
Merge psbt into this.
The two psbts must have the same underlying CTransaction (i.e. the same actual Bitcoin transaction.) Returns true if the merge succeeded, false otherwise.
Definition at line 27 of file psbt.cpp.
|
inline |
|
inline |
| std::set<PSBTProprietary> PartiallySignedTransaction::m_proprietary |
| std::optional<uint32_t> PartiallySignedTransaction::m_version |
| std::map<KeyOriginInfo, std::set<CExtPubKey> > PartiallySignedTransaction::m_xpubs |
| std::vector<PSBTOutput> PartiallySignedTransaction::outputs |
| std::optional<CMutableTransaction> PartiallySignedTransaction::tx |
| std::map<std::vector<unsigned char>, std::vector<unsigned char> > PartiallySignedTransaction::unknown |