Bitcoin Core  27.99.0
P2P Digital Currency
Functions
core_read.cpp File Reference
#include <core_io.h>
#include <primitives/block.h>
#include <primitives/transaction.h>
#include <script/script.h>
#include <script/sign.h>
#include <serialize.h>
#include <streams.h>
#include <util/result.h>
#include <util/strencodings.h>
#include <algorithm>
#include <string>
Include dependency graph for core_read.cpp:

Go to the source code of this file.

Functions

CScript ParseScript (const std::string &s)
 
static bool CheckTxScriptsSanity (const CMutableTransaction &tx)
 
static bool DecodeTx (CMutableTransaction &tx, const std::vector< unsigned char > &tx_data, bool try_no_witness, bool try_witness)
 
bool DecodeHexTx (CMutableTransaction &tx, const std::string &hex_tx, bool try_no_witness, bool try_witness)
 
bool DecodeHexBlockHeader (CBlockHeader &header, const std::string &hex_header)
 
bool DecodeHexBlk (CBlock &block, const std::string &strHexBlk)
 
bool ParseHashStr (const std::string &strHex, uint256 &result)
 Parse a hex string into 256 bits. More...
 
util::Result< int > SighashFromStr (const std::string &sighash)
 

Function Documentation

◆ CheckTxScriptsSanity()

static bool CheckTxScriptsSanity ( const CMutableTransaction tx)
static

Definition at line 103 of file core_read.cpp.

Here is the caller graph for this function:

◆ DecodeHexBlk()

bool DecodeHexBlk ( CBlock block,
const std::string &  strHexBlk 
)

Definition at line 218 of file core_read.cpp.

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

◆ DecodeHexBlockHeader()

bool DecodeHexBlockHeader ( CBlockHeader header,
const std::string &  hex_header 
)

Definition at line 204 of file core_read.cpp.

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

◆ DecodeHexTx()

bool DecodeHexTx ( CMutableTransaction tx,
const std::string &  hex_tx,
bool  try_no_witness,
bool  try_witness 
)

Definition at line 194 of file core_read.cpp.

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

◆ DecodeTx()

static bool DecodeTx ( CMutableTransaction tx,
const std::vector< unsigned char > &  tx_data,
bool  try_no_witness,
bool  try_witness 
)
static

Definition at line 123 of file core_read.cpp.

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

◆ ParseHashStr()

bool ParseHashStr ( const std::string &  strHex,
uint256 result 
)

Parse a hex string into 256 bits.

Parameters
[in]strHexa hex-formatted, 64-character string
[out]resultthe result of the parsing
Returns
true if successful, false if not
See also
ParseHashV for an RPC-oriented version of this

Definition at line 235 of file core_read.cpp.

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

◆ ParseScript()

CScript ParseScript ( const std::string &  s)

Definition at line 61 of file core_read.cpp.

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

◆ SighashFromStr()

util::Result<int> SighashFromStr ( const std::string &  sighash)

Definition at line 244 of file core_read.cpp.

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