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

#include <sign.h>

Collaboration diagram for SignatureData:
[legend]

Public Member Functions

 SignatureData ()
 
 SignatureData (const CScript &script)
 
void MergeSignatureData (SignatureData sigdata)
 

Public Attributes

bool complete = false
 Stores whether the scriptSig and scriptWitness are complete. More...
 
bool witness = false
 Stores whether the input this SigData corresponds to is a witness input. More...
 
CScript scriptSig
 The scriptSig of an input. Contains complete signatures or the traditional partial signatures format. More...
 
CScript redeem_script
 The redeemScript (if any) for the input. More...
 
CScript witness_script
 The witnessScript (if any) for the input. witnessScripts are used in P2WSH outputs. More...
 
CScriptWitness scriptWitness
 The scriptWitness of an input. Contains complete signatures or the traditional partial signatures format. scriptWitness is part of a transaction input per BIP 144. More...
 
std::map< CKeyID, SigPairsignatures
 BIP 174 style partial signatures for the input. May contain all signatures necessary for producing a final scriptSig or scriptWitness. More...
 
std::map< CKeyID, std::pair< CPubKey, KeyOriginInfo > > misc_pubkeys
 
std::vector< CKeyIDmissing_pubkeys
 KeyIDs of pubkeys which could not be found. More...
 
std::vector< CKeyIDmissing_sigs
 KeyIDs of pubkeys for signatures which could not be found. More...
 
uint160 missing_redeem_script
 ScriptID of the missing redeemScript (if any) More...
 
uint256 missing_witness_script
 SHA256 of the missing witnessScript (if any) More...
 

Detailed Description

Definition at line 58 of file sign.h.

Constructor & Destructor Documentation

◆ SignatureData() [1/2]

SignatureData::SignatureData ( )
inline

Definition at line 72 of file sign.h.

◆ SignatureData() [2/2]

SignatureData::SignatureData ( const CScript script)
inlineexplicit

Definition at line 73 of file sign.h.

Member Function Documentation

◆ MergeSignatureData()

void SignatureData::MergeSignatureData ( SignatureData  sigdata)

Definition at line 352 of file sign.cpp.

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

Member Data Documentation

◆ complete

bool SignatureData::complete = false

Stores whether the scriptSig and scriptWitness are complete.

Definition at line 59 of file sign.h.

◆ misc_pubkeys

std::map<CKeyID, std::pair<CPubKey, KeyOriginInfo> > SignatureData::misc_pubkeys

Definition at line 66 of file sign.h.

◆ missing_pubkeys

std::vector<CKeyID> SignatureData::missing_pubkeys

KeyIDs of pubkeys which could not be found.

Definition at line 67 of file sign.h.

◆ missing_redeem_script

uint160 SignatureData::missing_redeem_script

ScriptID of the missing redeemScript (if any)

Definition at line 69 of file sign.h.

◆ missing_sigs

std::vector<CKeyID> SignatureData::missing_sigs

KeyIDs of pubkeys for signatures which could not be found.

Definition at line 68 of file sign.h.

◆ missing_witness_script

uint256 SignatureData::missing_witness_script

SHA256 of the missing witnessScript (if any)

Definition at line 70 of file sign.h.

◆ redeem_script

CScript SignatureData::redeem_script

The redeemScript (if any) for the input.

Definition at line 62 of file sign.h.

◆ scriptSig

CScript SignatureData::scriptSig

The scriptSig of an input. Contains complete signatures or the traditional partial signatures format.

Definition at line 61 of file sign.h.

◆ scriptWitness

CScriptWitness SignatureData::scriptWitness

The scriptWitness of an input. Contains complete signatures or the traditional partial signatures format. scriptWitness is part of a transaction input per BIP 144.

Definition at line 64 of file sign.h.

◆ signatures

std::map<CKeyID, SigPair> SignatureData::signatures

BIP 174 style partial signatures for the input. May contain all signatures necessary for producing a final scriptSig or scriptWitness.

Definition at line 65 of file sign.h.

◆ witness

bool SignatureData::witness = false

Stores whether the input this SigData corresponds to is a witness input.

Definition at line 60 of file sign.h.

◆ witness_script

CScript SignatureData::witness_script

The witnessScript (if any) for the input. witnessScripts are used in P2WSH outputs.

Definition at line 63 of file sign.h.


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