![]() |
Bitcoin Core
22.99.0
P2P Digital Currency
|
#include <standard.h>
Public Member Functions | |
void | Merge (TaprootSpendData other) |
Merge other TaprootSpendData (for the same scriptPubKey) into this. More... | |
Public Attributes | |
XOnlyPubKey | internal_key |
The BIP341 internal key. More... | |
uint256 | merkle_root |
The Merkle root of the script tree (0 if no scripts). More... | |
std::map< std::pair< CScript, int >, std::set< std::vector< unsigned char >, ShortestVectorFirstComparator > > | scripts |
Map from (script, leaf_version) to (sets of) control blocks. More... | |
Definition at line 207 of file standard.h.
void TaprootSpendData::Merge | ( | TaprootSpendData | other | ) |
Merge other TaprootSpendData (for the same scriptPubKey) into this.
Definition at line 358 of file standard.cpp.
XOnlyPubKey TaprootSpendData::internal_key |
The BIP341 internal key.
Definition at line 210 of file standard.h.
uint256 TaprootSpendData::merkle_root |
The Merkle root of the script tree (0 if no scripts).
Definition at line 212 of file standard.h.
std::map<std::pair<CScript, int>, std::set<std::vector<unsigned char>, ShortestVectorFirstComparator> > TaprootSpendData::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.
Definition at line 219 of file standard.h.