![]() |
Dash Core
0.12.2.1
P2P Digital Currency
|
#include "core_io.h"
#include "base58.h"
#include "primitives/transaction.h"
#include "script/script.h"
#include "script/standard.h"
#include "serialize.h"
#include "streams.h"
#include <univalue.h>
#include "util.h"
#include "utilmoneystr.h"
#include "utilstrencodings.h"
#include <boost/assign/list_of.hpp>
#include <boost/foreach.hpp>
Go to the source code of this file.
Functions | |
string | FormatScript (const CScript &script) |
string | ScriptToAsmStr (const CScript &script, const bool fAttemptSighashDecode) |
string | EncodeHexTx (const CTransaction &tx) |
void | ScriptPubKeyToUniv (const CScript &scriptPubKey, UniValue &out, bool fIncludeHex) |
void | TxToUniv (const CTransaction &tx, const uint256 &hashBlock, UniValue &entry) |
Variables | |
const map< unsigned char, string > | mapSigHashTypes |
string EncodeHexTx | ( | const CTransaction & | tx | ) |
Definition at line 119 of file core_write.cpp.
Referenced by createrawtransaction(), fundrawtransaction(), getblocktemplate(), getrawtransaction(), gettransaction(), TransactionTablePriv::getTxHex(), OutputTxHex(), signrawtransaction(), and TxToUniv().
string FormatScript | ( | const CScript & | script | ) |
Definition at line 23 of file core_write.cpp.
Definition at line 126 of file core_write.cpp.
Referenced by TxToUniv().
string ScriptToAsmStr | ( | const CScript & | script, |
const bool | fAttemptSighashDecode | ||
) |
Create the assembly string representation of a CScript object.
[in] | script | CScript object to convert into the asm string representation. |
[in] | fAttemptSighashDecode | Whether 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().
void TxToUniv | ( | const CTransaction & | tx, |
const uint256 & | hashBlock, | ||
UniValue & | entry | ||
) |
Definition at line 151 of file core_write.cpp.
Referenced by OutputTxJSON().
const map<unsigned char, string> mapSigHashTypes |
Definition at line 58 of file core_write.cpp.
Referenced by ScriptToAsmStr().