Bitcoin Core  22.99.0
P2P Digital Currency
Functions
sighash_tests.cpp File Reference
#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/setup_common.h>
#include <util/strencodings.h>
#include <util/system.h>
#include <version.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

UniValue read_json (const std::string &jsondata)
 
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 86 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 94 of file sighash_tests.cpp.

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

◆ read_json()

UniValue read_json ( const std::string &  jsondata)

Definition at line 42 of file script_tests.cpp.

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 27 of file sighash_tests.cpp.

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