Dash Core  0.12.2.1
P2P Digital Currency
core_io.h File Reference
#include <string>
#include <vector>

Go to the source code of this file.

Functions

CScript ParseScript (const std::string &s)
 
std::string ScriptToAsmStr (const CScript &script, const bool fAttemptSighashDecode=false)
 
bool DecodeHexTx (CTransaction &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)
 
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 ,
const std::string &  strHexBlk 
)

Definition at line 110 of file core_read.cpp.

Referenced by getblocktemplate(), and submitblock().

◆ DecodeHexTx()

bool DecodeHexTx ( CTransaction tx,
const std::string &  strHexTx 
)

◆ EncodeHexTx()

◆ FormatScript()

std::string FormatScript ( const CScript script)

Definition at line 23 of file core_write.cpp.

◆ ParseHashStr()

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

Definition at line 135 of file core_read.cpp.

Referenced by ParseHashUV(), and prioritisetransaction().

◆ ParseHashUV()

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

Referenced by MutateTxSign(), and ParseHashUO().

◆ ParseHexUV()

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

Referenced by MutateTxSign(), and ParseHexUO().

◆ ParseScript()

CScript ParseScript ( const std::string &  s)

Definition at line 25 of file core_read.cpp.

Referenced by MutateTxAddOutScript().

◆ ScriptPubKeyToUniv()

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

Definition at line 126 of file core_write.cpp.

Referenced by TxToUniv().

◆ 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 75 of file core_write.cpp.

Referenced by CPrivateSendServer::AddScriptSig(), CMasternodePaymentVote::CheckSignature(), CGovernanceObject::IsCollateralValid(), CPrivateSendServer::IsInputScriptSigValid(), MutateTxSign(), CPrivateSendServer::ProcessMessage(), ScriptPubKeyToJSON(), ScriptPubKeyToUniv(), CMasternodePaymentVote::Sign(), CPrivateSendClient::SignFinalTransaction(), signrawtransaction(), CMasternodePaymentVote::ToString(), TxToJSON(), and TxToUniv().

◆ TxToUniv()

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

Definition at line 151 of file core_write.cpp.

Referenced by OutputTxJSON().