Bitcoin Core 28.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 ()=default
 
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< std::vector< unsigned char >, 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 197 of file psbt.h.

Constructor & Destructor Documentation

◆ PSBTInput() [1/2]

PSBTInput::PSBTInput ( )
default

◆ PSBTInput() [2/2]

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

Definition at line 708 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 94 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 151 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 89 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 198 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 231 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 370 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 203 of file psbt.h.

◆ final_script_witness

CScriptWitness PSBTInput::final_script_witness

Definition at line 204 of file psbt.h.

◆ hash160_preimages

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

Definition at line 209 of file psbt.h.

◆ hash256_preimages

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

Definition at line 210 of file psbt.h.

◆ hd_keypaths

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

Definition at line 205 of file psbt.h.

◆ m_proprietary

std::set<PSBTProprietary> PSBTInput::m_proprietary

Definition at line 221 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 216 of file psbt.h.

◆ m_tap_internal_key

XOnlyPubKey PSBTInput::m_tap_internal_key

Definition at line 217 of file psbt.h.

◆ m_tap_key_sig

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

Definition at line 213 of file psbt.h.

◆ m_tap_merkle_root

uint256 PSBTInput::m_tap_merkle_root

Definition at line 218 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 214 of file psbt.h.

◆ m_tap_scripts

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

Definition at line 215 of file psbt.h.

◆ non_witness_utxo

CTransactionRef PSBTInput::non_witness_utxo

Definition at line 199 of file psbt.h.

◆ partial_sigs

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

Definition at line 206 of file psbt.h.

◆ redeem_script

CScript PSBTInput::redeem_script

Definition at line 201 of file psbt.h.

◆ ripemd160_preimages

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

Definition at line 207 of file psbt.h.

◆ sha256_preimages

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

Definition at line 208 of file psbt.h.

◆ sighash_type

std::optional<int> PSBTInput::sighash_type

Definition at line 222 of file psbt.h.

◆ unknown

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

Definition at line 220 of file psbt.h.

◆ witness_script

CScript PSBTInput::witness_script

Definition at line 202 of file psbt.h.

◆ witness_utxo

CTxOut PSBTInput::witness_utxo

Definition at line 200 of file psbt.h.


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