Modules

Structs

  • | A data type to abstract out the condition | stack during script execution. | | Conceptually it acts like a vector of | booleans, one for each level of nested | | IF/THEN/ELSE, indicating whether | we’re in the active or inactive branch | of each. | | The elements on the stack cannot be observed | individually; we only need to expose | whether the stack is empty and whether | or not any false values are present at | all. To implement OP_ELSE, a toggle_top | modifier is added, which flips the last | value without returning it. | | This uses an optimized implementation | that does not materialize the actual | stack. Instead, it just stores the size | of the would-be stack, and the position | of the first false value in it. |
  • | A generic txid reference (txid or wtxid). |

  • | Serialized script, used inside transaction | inputs and outputs |


  • | A reference to a Script: the Hash160 | of its serialization (see script.h) |


  • | Valid signature cache, to avoid doing | expensive ECDSA signature checking | twice for every transaction (once when | accepted into memory pool, and again | when accepted into the block chain) |
  • | 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.

  • | Utility class to construct Taproot | outputs from internal key and script | tree. |
  • | A class that deserializes a single CTransaction | one time. |
  • | TxDestination subtype to encode any | future Witness version |



Enums

  • | Enum to specify what *TransactionSignatureChecker’s | behavior should be when dealing with | missing transaction data. |
  • | A txout script template with a specific | destination. It is either: | | - CNoDestination: no destination set | | - PKHash: TxoutType::PUBKEYHASH destination | (P2PKH) | | - ScriptHash: TxoutType::SCRIPTHASH | destination (P2SH) | | - WitnessV0ScriptHash: TxoutType::WITNESS_V0_SCRIPTHASH | destination (P2WSH) | | - WitnessV0KeyHash: TxoutType::WITNESS_V0_KEYHASH | destination (P2WPKH) | | - WitnessV1Taproot: TxoutType::WITNESS_V1_TAPROOT | destination (P2TR) | | - WitnessUnknown: TxoutType::WITNESS_UNKNOWN | destination (P2W???) | | A TxDestination is the internal data | type encoded in a bitcoin address |

Constants

Traits

Functions

Type Definitions

  • | Script opcodes |
  • | We use a prevector for the script to reduce | the considerable memory overhead of | vectors in cases where they normally | contain a small number of small elements. | | Tests in October 2015 showed use of this | reduced dbcache memory usage by 23% | and made an initial sync 13% faster. |