Bitcoin Core  27.99.0
P2P Digital Currency
Functions
sighash_tests.cpp File Reference
#include <common/system.h>
#include <consensus/tx_check.h>
#include <consensus/validation.h>
#include <hash.h>
#include <script/interpreter.h>
#include <script/script.h>
#include <serialize.h>
#include <streams.h>
#include <test/data/sighash.json.h>
#include <test/util/json.h>
#include <test/util/random.h>
#include <test/util/setup_common.h>
#include <util/strencodings.h>
#include <iostream>
#include <boost/test/unit_test.hpp>
#include <univalue.h>
Include dependency graph for sighash_tests.cpp:

Go to the source code of this file.

Functions

static uint256 SignatureHashOld (CScript scriptCode, const CTransaction &txTo, unsigned int nIn, int nHashType)
 
static void RandomScript (CScript &script)
 
static void RandomTransaction (CMutableTransaction &tx, bool fSingle)
 
 BOOST_AUTO_TEST_CASE (sighash_test)
 
 BOOST_AUTO_TEST_CASE (sighash_from_data)
 

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/2]

BOOST_AUTO_TEST_CASE ( sighash_from_data  )

Definition at line 162 of file sighash_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [2/2]

BOOST_AUTO_TEST_CASE ( sighash_test  )

Definition at line 119 of file sighash_tests.cpp.

Here is the call graph for this function:

◆ RandomScript()

static void RandomScript ( CScript script)
static

Definition at line 85 of file sighash_tests.cpp.

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

◆ RandomTransaction()

static void RandomTransaction ( CMutableTransaction tx,
bool  fSingle 
)
static

Definition at line 93 of file sighash_tests.cpp.

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

◆ SignatureHashOld()

static uint256 SignatureHashOld ( CScript  scriptCode,
const CTransaction txTo,
unsigned int  nIn,
int  nHashType 
)
static

Definition at line 26 of file sighash_tests.cpp.

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