Bitcoin Core 32.99.0
P2P Digital Currency
Loading...
Searching...
No Matches
Enumerations | Functions | Variables
bip352.cpp File Reference
#include <common/bip352.h>
#include <addresstype.h>
#include <bench/bench.h>
#include <key.h>
#include <primitives/transaction.h>
#include <pubkey.h>
#include <script/interpreter.h>
#include <script/script.h>
#include <util/check.h>
#include <optional>
#include <span>
#include <utility>
#include <variant>
#include <vector>
Include dependency graph for bip352.cpp:

Go to the source code of this file.

Enumerations

enum class  InputType {
  P2PKH , P2SH_P2WPKH , P2WPKH , P2TR ,
  P2PKH_WorstCase , P2WPKH , P2TR
}
 

Functions

static const std::vector< unsigned char > DUMMY_ECDSA_SIG (71, 0x01)
 
static const std::vector< unsigned char > DUMMY_SCHNORR_SIG (64, 0x01)
 
static void GetPubKeyBench (benchmark::Bench &bench, InputType input_type)
 
static void BIP352_GetPubKey_P2PKH (benchmark::Bench &bench)
 
static void BIP352_GetPubKey_P2SH_P2WPKH (benchmark::Bench &bench)
 
static void BIP352_GetPubKey_P2WPKH (benchmark::Bench &bench)
 
static void BIP352_GetPubKey_P2TR (benchmark::Bench &bench)
 
static void BIP352_GetPubKey_P2PKH_WorstCase (benchmark::Bench &bench)
 
 BENCHMARK (BIP352_GetPubKey_P2PKH)
 
 BENCHMARK (BIP352_GetPubKey_P2SH_P2WPKH)
 
 BENCHMARK (BIP352_GetPubKey_P2WPKH)
 
 BENCHMARK (BIP352_GetPubKey_P2TR)
 
 BENCHMARK (BIP352_GetPubKey_P2PKH_WorstCase)
 

Variables

static const CScript DUMMY_LEAF_SCRIPT {CScript() << std::vector<unsigned char>(32, 0x01) << OP_CHECKSIG}
 

Enumeration Type Documentation

◆ InputType

enum class InputType
strong
Enumerator
P2PKH 
P2SH_P2WPKH 
P2WPKH 
P2TR 
P2PKH_WorstCase 
P2WPKH 
P2TR 

Definition at line 22 of file bip352.cpp.

Function Documentation

◆ BENCHMARK() [1/5]

BENCHMARK ( BIP352_GetPubKey_P2PKH  )

◆ BENCHMARK() [2/5]

◆ BENCHMARK() [3/5]

◆ BENCHMARK() [4/5]

BENCHMARK ( BIP352_GetPubKey_P2TR  )

◆ BENCHMARK() [5/5]

BENCHMARK ( BIP352_GetPubKey_P2WPKH  )

◆ BIP352_GetPubKey_P2PKH()

static void BIP352_GetPubKey_P2PKH ( benchmark::Bench &  bench)
static

Definition at line 101 of file bip352.cpp.

Here is the call graph for this function:

◆ BIP352_GetPubKey_P2PKH_WorstCase()

static void BIP352_GetPubKey_P2PKH_WorstCase ( benchmark::Bench &  bench)
static

Definition at line 105 of file bip352.cpp.

Here is the call graph for this function:

◆ BIP352_GetPubKey_P2SH_P2WPKH()

static void BIP352_GetPubKey_P2SH_P2WPKH ( benchmark::Bench &  bench)
static

Definition at line 102 of file bip352.cpp.

Here is the call graph for this function:

◆ BIP352_GetPubKey_P2TR()

static void BIP352_GetPubKey_P2TR ( benchmark::Bench &  bench)
static

Definition at line 104 of file bip352.cpp.

Here is the call graph for this function:

◆ BIP352_GetPubKey_P2WPKH()

static void BIP352_GetPubKey_P2WPKH ( benchmark::Bench &  bench)
static

Definition at line 103 of file bip352.cpp.

Here is the call graph for this function:

◆ DUMMY_ECDSA_SIG()

static const std::vector< unsigned char > DUMMY_ECDSA_SIG ( 71  ,
0x01   
)
static
Here is the caller graph for this function:

◆ DUMMY_SCHNORR_SIG()

static const std::vector< unsigned char > DUMMY_SCHNORR_SIG ( 64  ,
0x01   
)
static
Here is the caller graph for this function:

◆ GetPubKeyBench()

static void GetPubKeyBench ( benchmark::Bench &  bench,
InputType  input_type 
)
static

Definition at line 36 of file bip352.cpp.

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

Variable Documentation

◆ DUMMY_LEAF_SCRIPT

const CScript DUMMY_LEAF_SCRIPT {CScript() << std::vector<unsigned char>(32, 0x01) << OP_CHECKSIG}
static

Definition at line 34 of file bip352.cpp.