A structure for PSBTs which contains per output information

Synopsis

Declared in <psbt.h>

class PSBTOutput;

Member Functions

Name

Description

PSBTOutput [constructor]

Constructors

FillSignatureData

Populate signature data from this output's fields.

FromSignatureData

Copy relevant fields from the given signature data into this output.

GetVersion

Return the PSBT version of this output.

Merge

Merge another output's fields into this one.

Serialize

Serialize this output to a stream.

Unserialize

Deserialize this output from a stream.

operator==

Compare two outputs for equality field by field.

Data Members

Name

Description

amount

The output amount (PSBTv2).

hd_keypaths

BIP32 derivation paths keyed by public key.

m_musig2_participants

MuSig2 participant public keys keyed by aggregate public key.

m_proprietary

Proprietary key‐value records.

m_tap_bip32_paths

Taproot BIP32 derivation paths keyed by x‐only public key.

m_tap_internal_key

Taproot internal key.

m_tap_tree

Taproot tree leaves, each as depth, leaf version, and script.

redeem_script

The redeem script for a P2SH output.

script

The output script (PSBTv2).

unknown

Unknown key‐value pairs preserved across round‐trips.

witness_script

The witness script for a P2WSH output.

Created with MrDocs