PIVX Core  5.6.99
P2P Digital Currency
Functions
core_io.h File Reference
#include <string>
#include <vector>
Include dependency graph for core_io.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

CScript ParseScript (std::string s)
 
std::string ScriptToAsmStr (const CScript &script, const bool fAttemptSighashDecode=false)
 Create the assembly string representation of a CScript object. More...
 
bool DecodeHexTx (CMutableTransaction &tx, const std::string &strHexTx)
 
bool DecodeHexBlk (CBlock &, const std::string &strHexBlk)
 
uint256 ParseHashUV (const UniValue &v, const std::string &strName)
 
uint256 ParseHashStr (const std::string &, const std::string &strName)
 
bool ParseHashStr (const std::string &strReq, uint256 &v)
 
std::vector< unsigned char > ParseHexUV (const UniValue &v, const std::string &strName)
 
std::string FormatScript (const CScript &script)
 
std::string EncodeHexTx (const CTransaction &tx)
 
void ScriptPubKeyToUniv (const CScript &scriptPubKey, UniValue &out, bool fIncludeHex)
 
void TxToUniv (const CTransaction &tx, const uint256 &hashBlock, UniValue &entry)
 

Function Documentation

◆ DecodeHexBlk()

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

Definition at line 93 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 &  strHexTx 
)

Definition at line 77 of file core_read.cpp.

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

◆ EncodeHexTx()

std::string EncodeHexTx ( const CTransaction tx)

Definition at line 116 of file core_write.cpp.

Here is the caller graph for this function:

◆ FormatScript()

std::string FormatScript ( const CScript script)

Definition at line 20 of file core_write.cpp.

Here is the call graph for this function:

◆ ParseHashStr() [1/2]

uint256 ParseHashStr ( const std::string &  strHex,
const std::string &  strName 
)

Definition at line 117 of file core_read.cpp.

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

◆ ParseHashStr() [2/2]

bool ParseHashStr ( const std::string &  strReq,
uint256 v 
)

Definition at line 127 of file core_read.cpp.

Here is the call graph for this function:

◆ ParseHashUV()

uint256 ParseHashUV ( const UniValue v,
const std::string &  strName 
)

Definition at line 109 of file core_read.cpp.

Here is the call graph for this function:

◆ ParseHexUV()

std::vector<unsigned char> ParseHexUV ( const UniValue v,
const std::string &  strName 
)

Definition at line 136 of file core_read.cpp.

Here is the call graph for this function:

◆ ParseScript()

CScript ParseScript ( std::string  s)

Definition at line 23 of file core_read.cpp.

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

◆ ScriptPubKeyToUniv()

void ScriptPubKeyToUniv ( const CScript scriptPubKey,
UniValue out,
bool  fIncludeHex 
)

Definition at line 123 of file core_write.cpp.

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

◆ ScriptToAsmStr()

std::string ScriptToAsmStr ( const CScript script,
const bool  fAttemptSighashDecode 
)

Create the assembly string representation of a CScript object.

Parameters
[in]scriptCScript object to convert into the asm string representation.
[in]fAttemptSighashDecodeWhether to attempt to decode sighash types on data within the script that matches the format of a signature. Only pass true for scripts you believe could contain signatures. For example, pass false, or omit the this argument (defaults to false), for scriptPubKeys.

Definition at line 72 of file core_write.cpp.

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

◆ TxToUniv()

void TxToUniv ( const CTransaction tx,
const uint256 hashBlock,
UniValue entry 
)

Definition at line 166 of file core_write.cpp.

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