Bitcoin Core 32.1.0
P2P Digital Currency
Loading...
Searching...
No Matches
verify_script.cpp File Reference
#include <addresstype.h>
#include <bench/bench.h>
#include <coins.h>
#include <key.h>
#include <policy/policy.h>
#include <primitives/transaction.h>
#include <pubkey.h>
#include <script/interpreter.h>
#include <script/script.h>
#include <script/script_error.h>
#include <script/sign.h>
#include <script/signingprovider.h>
#include <script/verify_flags.h>
#include <span.h>
#include <test/util/transaction_utils.h>
#include <uint256.h>
#include <util/check.h>
#include <util/translation.h>
#include <cstddef>
#include <map>
#include <span>
#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 29 of file verify_script.cpp.

Function Documentation

◆ BENCHMARK() [1/4]

BENCHMARK ( VerifyNestedIfScript )
Here is the call graph for this function:

◆ BENCHMARK() [2/4]

BENCHMARK ( VerifyScriptP2TR_KeyPath )
Here is the call graph for this function:

◆ BENCHMARK() [3/4]

Here is the call graph for this function:

◆ BENCHMARK() [4/4]

BENCHMARK ( VerifyScriptP2WPKH )
Here is the call graph for this function:

◆ ExpectedWitnessStackSize()

size_t ExpectedWitnessStackSize ( ScriptType script_type)
static

Definition at line 35 of file verify_script.cpp.

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

◆ VerifyNestedIfScript()

void VerifyNestedIfScript ( benchmark::Bench & bench)
static

Definition at line 112 of file verify_script.cpp.

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

◆ VerifyScriptBench()

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

Definition at line 46 of file verify_script.cpp.

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

◆ VerifyScriptP2TR_KeyPath()

void VerifyScriptP2TR_KeyPath ( benchmark::Bench & bench)
static

Definition at line 109 of file verify_script.cpp.

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

◆ VerifyScriptP2TR_ScriptPath()

void VerifyScriptP2TR_ScriptPath ( benchmark::Bench & bench)
static

Definition at line 110 of file verify_script.cpp.

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

◆ VerifyScriptP2WPKH()

void VerifyScriptP2WPKH ( benchmark::Bench & bench)
static

Definition at line 108 of file verify_script.cpp.

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