Bitcoin Core  24.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::vector< unsigned char > m_tap_key_sig
 
std::map< std::pair< XOnlyPubKey, uint256 >, std::vector< unsigned char > > m_tap_script_sigs
 
std::map< std::pair< CScript, int >, std::set< std::vector< unsigned char >, ShortestVectorFirstComparator > > m_tap_scripts
 
std::map< XOnlyPubKey, std::pair< std::set< uint256 >, KeyOriginInfo > > m_tap_bip32_paths
 
XOnlyPubKey m_tap_internal_key
 
uint256 m_tap_merkle_root
 
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 191 of file psbt.h.

Constructor & Destructor Documentation

◆ PSBTInput() [1/2]

PSBTInput::PSBTInput ( )
inline

Definition at line 222 of file psbt.h.

◆ PSBTInput() [2/2]

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

Definition at line 704 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 93 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 137 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 88 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 184 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 225 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 365 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 197 of file psbt.h.

◆ final_script_witness

CScriptWitness PSBTInput::final_script_witness

Definition at line 198 of file psbt.h.

◆ hash160_preimages

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

Definition at line 203 of file psbt.h.

◆ hash256_preimages

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

Definition at line 204 of file psbt.h.

◆ hd_keypaths

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

Definition at line 199 of file psbt.h.

◆ m_proprietary

std::set<PSBTProprietary> PSBTInput::m_proprietary

Definition at line 215 of file psbt.h.

◆ m_tap_bip32_paths

std::map<XOnlyPubKey, std::pair<std::set<uint256>, KeyOriginInfo> > PSBTInput::m_tap_bip32_paths

Definition at line 210 of file psbt.h.

◆ m_tap_internal_key

XOnlyPubKey PSBTInput::m_tap_internal_key

Definition at line 211 of file psbt.h.

◆ m_tap_key_sig

std::vector<unsigned char> PSBTInput::m_tap_key_sig

Definition at line 207 of file psbt.h.

◆ m_tap_merkle_root

uint256 PSBTInput::m_tap_merkle_root

Definition at line 212 of file psbt.h.

◆ m_tap_script_sigs

std::map<std::pair<XOnlyPubKey, uint256>, std::vector<unsigned char> > PSBTInput::m_tap_script_sigs

Definition at line 208 of file psbt.h.

◆ m_tap_scripts

std::map<std::pair<CScript, int>, std::set<std::vector<unsigned char>, ShortestVectorFirstComparator> > PSBTInput::m_tap_scripts

Definition at line 209 of file psbt.h.

◆ non_witness_utxo

CTransactionRef PSBTInput::non_witness_utxo

Definition at line 193 of file psbt.h.

◆ partial_sigs

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

Definition at line 200 of file psbt.h.

◆ redeem_script

CScript PSBTInput::redeem_script

Definition at line 195 of file psbt.h.

◆ ripemd160_preimages

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

Definition at line 201 of file psbt.h.

◆ sha256_preimages

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

Definition at line 202 of file psbt.h.

◆ sighash_type

std::optional<int> PSBTInput::sighash_type

Definition at line 216 of file psbt.h.

◆ unknown

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

Definition at line 214 of file psbt.h.

◆ witness_script

CScript PSBTInput::witness_script

Definition at line 196 of file psbt.h.

◆ witness_utxo

CTxOut PSBTInput::witness_utxo

Definition at line 194 of file psbt.h.


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