Bitcoin Core  25.99.0
P2P Digital Currency
Functions | Variables
script.h File Reference
#include <crypto/sha256.h>
#include <script/script.h>
Include dependency graph for script.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

bool IsValidFlagCombination (unsigned flags)
 Flags that are not forbidden by an assert in script validation. More...
 

Variables

static const std::vector< uint8_t > WITNESS_STACK_ELEM_OP_TRUE {uint8_t{OP_TRUE}}
 
static const CScript P2WSH_OP_TRUE
 

Function Documentation

◆ IsValidFlagCombination()

bool IsValidFlagCombination ( unsigned  flags)

Flags that are not forbidden by an assert in script validation.

Definition at line 8 of file script.cpp.

Here is the caller graph for this function:

Variable Documentation

◆ P2WSH_OP_TRUE

const CScript P2WSH_OP_TRUE
static
Initial value:
{
<< OP_0
<< ToByteVector([] {
uint256 hash;
return hash;
}())}
A hasher class for SHA-256.
Definition: sha256.h:14
void Finalize(unsigned char hash[OUTPUT_SIZE])
Definition: sha256.cpp:707
CSHA256 & Write(const unsigned char *data, size_t len)
Definition: sha256.cpp:681
Serialized script, used inside transaction inputs and outputs.
Definition: script.h:411
constexpr unsigned char * begin()
Definition: uint256.h:67
256-bit opaque blob.
Definition: uint256.h:105
std::vector< unsigned char > ToByteVector(const T &in)
Definition: script.h:63
@ OP_0
Definition: script.h:72
static const std::vector< uint8_t > WITNESS_STACK_ELEM_OP_TRUE
Definition: script.h:11

Definition at line 12 of file script.h.

◆ WITNESS_STACK_ELEM_OP_TRUE

const std::vector<uint8_t> WITNESS_STACK_ELEM_OP_TRUE {uint8_t{OP_TRUE}}
static

Definition at line 11 of file script.h.