Bitcoin Core  22.99.0
P2P Digital Currency
Public Member Functions | Public Attributes | List of all members
PSBTInput Struct Reference

A structure for PSBTs which contain per-input information. More...

#include <psbt.h>

Collaboration diagram for PSBTInput:
[legend]

Public Member Functions

bool IsNull () const
 
void FillSignatureData (SignatureData &sigdata) const
 
void FromSignatureData (const SignatureData &sigdata)
 
void Merge (const PSBTInput &input)
 
 PSBTInput ()
 
template<typename Stream >
void Serialize (Stream &s) const
 
template<typename Stream >
void Unserialize (Stream &s)
 
template<typename Stream >
 PSBTInput (deserialize_type, Stream &s)
 

Public Attributes

CTransactionRef non_witness_utxo
 
CTxOut witness_utxo
 
CScript redeem_script
 
CScript witness_script
 
CScript final_script_sig
 
CScriptWitness final_script_witness
 
std::map< CPubKey, KeyOriginInfohd_keypaths
 
std::map< CKeyID, SigPairpartial_sigs
 
std::map< uint160, std::vector< unsigned char > > ripemd160_preimages
 
std::map< uint256, std::vector< unsigned char > > sha256_preimages
 
std::map< uint160, std::vector< unsigned char > > hash160_preimages
 
std::map< uint256, std::vector< unsigned char > > hash256_preimages
 
std::map< std::vector< unsigned char >, std::vector< unsigned char > > unknown
 
std::set< PSBTProprietarym_proprietary
 
std::optional< int > sighash_type
 

Detailed Description

A structure for PSBTs which contain per-input information.

Definition at line 168 of file psbt.h.

Constructor & Destructor Documentation

◆ PSBTInput() [1/2]

PSBTInput::PSBTInput ( )
inline

Definition at line 190 of file psbt.h.

◆ PSBTInput() [2/2]

template<typename Stream >
PSBTInput::PSBTInput ( deserialize_type  ,
Stream &  s 
)
inline

Definition at line 525 of file psbt.h.

Here is the call graph for this function:

Member Function Documentation

◆ FillSignatureData()

void PSBTInput::FillSignatureData ( SignatureData sigdata) const

Definition at line 92 of file psbt.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ FromSignatureData()

void PSBTInput::FromSignatureData ( const SignatureData sigdata)

Definition at line 118 of file psbt.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ IsNull()

bool PSBTInput::IsNull ( ) const

Definition at line 87 of file psbt.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Merge()

void PSBTInput::Merge ( const PSBTInput input)

Definition at line 147 of file psbt.cpp.

Here is the call graph for this function:

◆ Serialize()

template<typename Stream >
void PSBTInput::Serialize ( Stream &  s) const
inline

Definition at line 193 of file psbt.h.

Here is the call graph for this function:

◆ Unserialize()

template<typename Stream >
void PSBTInput::Unserialize ( Stream &  s)
inline

Definition at line 286 of file psbt.h.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ final_script_sig

CScript PSBTInput::final_script_sig

Definition at line 174 of file psbt.h.

◆ final_script_witness

CScriptWitness PSBTInput::final_script_witness

Definition at line 175 of file psbt.h.

◆ hash160_preimages

std::map<uint160, std::vector<unsigned char> > PSBTInput::hash160_preimages

Definition at line 180 of file psbt.h.

◆ hash256_preimages

std::map<uint256, std::vector<unsigned char> > PSBTInput::hash256_preimages

Definition at line 181 of file psbt.h.

◆ hd_keypaths

std::map<CPubKey, KeyOriginInfo> PSBTInput::hd_keypaths

Definition at line 176 of file psbt.h.

◆ m_proprietary

std::set<PSBTProprietary> PSBTInput::m_proprietary

Definition at line 183 of file psbt.h.

◆ non_witness_utxo

CTransactionRef PSBTInput::non_witness_utxo

Definition at line 170 of file psbt.h.

◆ partial_sigs

std::map<CKeyID, SigPair> PSBTInput::partial_sigs

Definition at line 177 of file psbt.h.

◆ redeem_script

CScript PSBTInput::redeem_script

Definition at line 172 of file psbt.h.

◆ ripemd160_preimages

std::map<uint160, std::vector<unsigned char> > PSBTInput::ripemd160_preimages

Definition at line 178 of file psbt.h.

◆ sha256_preimages

std::map<uint256, std::vector<unsigned char> > PSBTInput::sha256_preimages

Definition at line 179 of file psbt.h.

◆ sighash_type

std::optional<int> PSBTInput::sighash_type

Definition at line 184 of file psbt.h.

◆ unknown

std::map<std::vector<unsigned char>, std::vector<unsigned char> > PSBTInput::unknown

Definition at line 182 of file psbt.h.

◆ witness_script

CScript PSBTInput::witness_script

Definition at line 173 of file psbt.h.

◆ witness_utxo

CTxOut PSBTInput::witness_utxo

Definition at line 171 of file psbt.h.


The documentation for this struct was generated from the following files: