Bitcoin Core 31.99.0
P2P Digital Currency
Public Member Functions | Public Attributes | Private Attributes | List of all members
PSBTOutput Class Reference

A structure for PSBTs which contains per output information. More...

#include <psbt.h>

Collaboration diagram for PSBTOutput:
[legend]

Public Member Functions

bool IsNull () const
 
void FillSignatureData (SignatureData &sigdata) const
 
void FromSignatureData (const SignatureData &sigdata)
 
bool Merge (const PSBTOutput &output)
 
uint32_t GetVersion () const
 
 PSBTOutput (uint32_t psbt_version, CAmount amount, const CScript &script)
 
template<typename Stream >
 PSBTOutput (deserialize_type, Stream &s, uint32_t psbt_version)
 
bool operator== (const PSBTOutput &) const =default
 
template<typename Stream >
void Serialize (Stream &s) const
 
template<typename Stream >
void Unserialize (Stream &s)
 

Public Attributes

CScript redeem_script
 
CScript witness_script
 
std::map< CPubKey, KeyOriginInfohd_keypaths
 
XOnlyPubKey m_tap_internal_key
 
std::vector< std::tuple< uint8_t, uint8_t, std::vector< unsigned char > > > m_tap_tree
 
std::map< XOnlyPubKey, std::pair< std::set< uint256 >, KeyOriginInfo > > m_tap_bip32_paths
 
std::map< CPubKey, std::vector< CPubKey > > m_musig2_participants
 
std::map< std::vector< unsigned char >, std::vector< unsigned char > > unknown
 
std::set< PSBTProprietarym_proprietary
 
CAmount amount
 
CScript script
 

Private Attributes

uint32_t m_psbt_version
 

Detailed Description

A structure for PSBTs which contains per output information.

Definition at line 937 of file psbt.h.

Constructor & Destructor Documentation

◆ PSBTOutput() [1/2]

PSBTOutput::PSBTOutput ( uint32_t  psbt_version,
CAmount  amount,
const CScript script 
)
inlineexplicit

Definition at line 964 of file psbt.h.

Here is the call graph for this function:

◆ PSBTOutput() [2/2]

template<typename Stream >
PSBTOutput::PSBTOutput ( deserialize_type  ,
Stream &  s,
uint32_t  psbt_version 
)
inlineexplicit

Definition at line 974 of file psbt.h.

Here is the call graph for this function:

Member Function Documentation

◆ FillSignatureData()

void PSBTOutput::FillSignatureData ( SignatureData sigdata) const

Definition at line 475 of file psbt.cpp.

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

◆ FromSignatureData()

void PSBTOutput::FromSignatureData ( const SignatureData sigdata)

Definition at line 506 of file psbt.cpp.

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

◆ GetVersion()

uint32_t PSBTOutput::GetVersion ( ) const
inline

Definition at line 962 of file psbt.h.

Here is the caller graph for this function:

◆ IsNull()

bool PSBTOutput::IsNull ( ) const

Definition at line 529 of file psbt.cpp.

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

◆ Merge()

bool PSBTOutput::Merge ( const PSBTOutput output)

Definition at line 534 of file psbt.cpp.

Here is the call graph for this function:

◆ operator==()

bool PSBTOutput::operator== ( const PSBTOutput ) const
default

◆ Serialize()

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

Definition at line 984 of file psbt.h.

Here is the call graph for this function:

◆ Unserialize()

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

Definition at line 1067 of file psbt.h.

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

Member Data Documentation

◆ amount

CAmount PSBTOutput::amount

Definition at line 955 of file psbt.h.

◆ hd_keypaths

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

Definition at line 945 of file psbt.h.

◆ m_musig2_participants

std::map<CPubKey, std::vector<CPubKey> > PSBTOutput::m_musig2_participants

Definition at line 950 of file psbt.h.

◆ m_proprietary

std::set<PSBTProprietary> PSBTOutput::m_proprietary

Definition at line 953 of file psbt.h.

◆ m_psbt_version

uint32_t PSBTOutput::m_psbt_version
private

Definition at line 940 of file psbt.h.

◆ m_tap_bip32_paths

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

Definition at line 949 of file psbt.h.

◆ m_tap_internal_key

XOnlyPubKey PSBTOutput::m_tap_internal_key

Definition at line 947 of file psbt.h.

◆ m_tap_tree

std::vector<std::tuple<uint8_t, uint8_t, std::vector<unsigned char> > > PSBTOutput::m_tap_tree

Definition at line 948 of file psbt.h.

◆ redeem_script

CScript PSBTOutput::redeem_script

Definition at line 943 of file psbt.h.

◆ script

CScript PSBTOutput::script

Definition at line 956 of file psbt.h.

◆ unknown

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

Definition at line 952 of file psbt.h.

◆ witness_script

CScript PSBTOutput::witness_script

Definition at line 944 of file psbt.h.


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