Signature material collected for a single transaction input.
Synopsis
Declared in <script/sign.h>
struct SignatureData;
Description
This struct contains information from a transaction input and also contains signatures for that input. The information contained here can be used to create a signature and is also filled by ProduceSignature in order to construct final scriptSigs and scriptWitnesses.
Member Functions
Name |
Description |
|
Constructors |
Merge signatures and metadata from another SignatureData into this one. |
Data Members
Name |
Description |
Stores whether the scriptSig and scriptWitness are complete |
|
Mapping from a HASH160 hash to its preimage provided to solve a Script |
|
Mapping from a HASH256 hash to its preimage provided to solve a Script |
|
Public keys with key origin data collected for the input. |
|
KeyIDs of pubkeys which could not be found |
|
ScriptID of the missing redeemScript (if any) |
|
KeyIDs of pubkeys for signatures which could not be found |
|
SHA256 of the missing witnessScript (if any) |
|
Mapping from pair of MuSig2 aggregate pubkey, and tapleaf hash to map of MuSig2 participant pubkeys to MuSig2 partial signature |
|
Map MuSig2 aggregate pubkeys to its participants |
|
Mapping from pair of MuSig2 aggregate pubkey, and tapleaf hash to map of MuSig2 participant pubkeys to MuSig2 public nonce |
|
The redeemScript (if any) for the input |
|
Mapping from a RIPEMD160 hash to its preimage provided to solve a Script |
|
The scriptSig of an input. Contains complete signatures or the traditional partial signatures format |
|
The scriptWitness of an input. Contains complete signatures or the traditional partial signatures format. scriptWitness is part of a transaction input per BIP 144. |
|
Mapping from a SHA256 hash to its preimage provided to solve a Script |
|
BIP 174 style partial signatures for the input. May contain all signatures necessary for producing a final scriptSig or scriptWitness. |
|
Misc Taproot pubkeys involved in this input, by hash. (Equivalent of misc_pubkeys but for Taproot.) |
|
Schnorr signature for key path spending |
|
Miscellaneous Taproot pubkeys involved in this input along with their leaf script hashes and key origin data. Also includes the Taproot internal and output keys (may have no leaf script hashes). |
|
(Partial) schnorr signatures, indexed by XOnlyPubKey and leaf_hash. |
|
Taproot tree used to build tr_spenddata. |
|
Taproot spending data. |
|
Stores whether the input this SigData corresponds to is a witness input |
|
The witnessScript (if any) for the input. witnessScripts are used in P2WSH outputs. |
Non-Member Functions
Name |
Description |
Extract signature data from a transaction input, and insert it. |
Created with MrDocs