Data needed to spend a Taproot output, including its script tree.
Synopsis
Declared in <script/signingprovider.h>
struct TaprootSpendData;
Member Functions
Name |
Description |
Merge other TaprootSpendData (for the same scriptPubKey) into this. |
Data Members
Name |
Description |
The BIP341 internal key. |
|
The Merkle root of the script tree (0 if no scripts). |
|
Map from (script, leaf_version) to (sets of) control blocks. More than one control block for a given script is only possible if it appears in multiple branches of the tree. We keep them all so that inference can reconstruct the full tree. Within each set, the control blocks are sorted by size, so that the signing logic can easily prefer the cheapest one. |
Non-Member Functions
Name |
Description |
Given a TaprootSpendData and the output key, reconstruct its script tree. |
Created with MrDocs