Bitcoin Core  22.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;
}())}

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.

CSHA256::Write
CSHA256 & Write(const unsigned char *data, size_t len)
Definition: sha256.cpp:637
WITNESS_STACK_ELEM_OP_TRUE
static const std::vector< uint8_t > WITNESS_STACK_ELEM_OP_TRUE
Definition: script.h:11
OP_0
@ OP_0
Definition: script.h:69
ToByteVector
std::vector< unsigned char > ToByteVector(const T &in)
Definition: script.h:60
uint256
256-bit opaque blob.
Definition: uint256.h:124
CSHA256::Finalize
void Finalize(unsigned char hash[OUTPUT_SIZE])
Definition: sha256.cpp:663
CScript
Serialized script, used inside transaction inputs and outputs.
Definition: script.h:405
CSHA256
A hasher class for SHA-256.
Definition: sha256.h:13
base_blob::begin
unsigned char * begin()
Definition: uint256.h:58