Bitcoin Core 31.99.0
P2P Digital Currency
Enumerations | Functions
verify_script.cpp File Reference
#include <addresstype.h>
#include <bench/bench.h>
#include <key.h>
#include <policy/policy.h>
#include <primitives/transaction.h>
#include <pubkey.h>
#include <script/interpreter.h>
#include <script/script.h>
#include <span.h>
#include <test/util/transaction_utils.h>
#include <uint256.h>
#include <util/translation.h>
#include <array>
#include <cassert>
#include <cstdint>
#include <vector>
Include dependency graph for verify_script.cpp:

Go to the source code of this file.

Enumerations

enum class  ScriptType { P2WPKH , P2TR_KeyPath , P2TR_ScriptPath }
 

Functions

static size_t ExpectedWitnessStackSize (ScriptType script_type)
 
static void VerifyScriptBench (benchmark::Bench &bench, ScriptType script_type)
 
static void VerifyScriptP2WPKH (benchmark::Bench &bench)
 
static void VerifyScriptP2TR_KeyPath (benchmark::Bench &bench)
 
static void VerifyScriptP2TR_ScriptPath (benchmark::Bench &bench)
 
static void VerifyNestedIfScript (benchmark::Bench &bench)
 
 BENCHMARK (VerifyScriptP2WPKH)
 
 BENCHMARK (VerifyScriptP2TR_KeyPath)
 
 BENCHMARK (VerifyScriptP2TR_ScriptPath)
 
 BENCHMARK (VerifyNestedIfScript)
 

Enumeration Type Documentation

◆ ScriptType

enum class ScriptType
strong
Enumerator
P2WPKH 
P2TR_KeyPath 
P2TR_ScriptPath 

Definition at line 23 of file verify_script.cpp.

Function Documentation

◆ BENCHMARK() [1/4]

BENCHMARK ( VerifyNestedIfScript  )

◆ BENCHMARK() [2/4]

BENCHMARK ( VerifyScriptP2TR_KeyPath  )

◆ BENCHMARK() [3/4]

BENCHMARK ( VerifyScriptP2TR_ScriptPath  )

◆ BENCHMARK() [4/4]

BENCHMARK ( VerifyScriptP2WPKH  )

◆ ExpectedWitnessStackSize()

static size_t ExpectedWitnessStackSize ( ScriptType  script_type)
static

Definition at line 29 of file verify_script.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ VerifyNestedIfScript()

static void VerifyNestedIfScript ( benchmark::Bench bench)
static

Definition at line 105 of file verify_script.cpp.

Here is the call graph for this function:

◆ VerifyScriptBench()

static void VerifyScriptBench ( benchmark::Bench bench,
ScriptType  script_type 
)
static

Definition at line 40 of file verify_script.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ VerifyScriptP2TR_KeyPath()

static void VerifyScriptP2TR_KeyPath ( benchmark::Bench bench)
static

Definition at line 102 of file verify_script.cpp.

Here is the call graph for this function:

◆ VerifyScriptP2TR_ScriptPath()

static void VerifyScriptP2TR_ScriptPath ( benchmark::Bench bench)
static

Definition at line 103 of file verify_script.cpp.

Here is the call graph for this function:

◆ VerifyScriptP2WPKH()

static void VerifyScriptP2WPKH ( benchmark::Bench bench)
static

Definition at line 101 of file verify_script.cpp.

Here is the call graph for this function: