#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.
◆ EncodeHexTx()
std::string EncodeHexTx |
( |
const CTransaction & |
tx, |
|
|
const int |
serialFlags |
|
) |
| |
◆ FormatScript()
std::string FormatScript |
( |
const CScript & |
script | ) |
|
◆ ScriptPubKeyToUniv()
void ScriptPubKeyToUniv |
( |
const CScript & |
scriptPubKey, |
|
|
UniValue & |
out, |
|
|
bool |
fIncludeHex |
|
) |
| |
◆ ScriptToAsmStr()
std::string ScriptToAsmStr |
( |
const CScript & |
script, |
|
|
const bool |
fAttemptSighashDecode |
|
) |
| |
Create the assembly string representation of a CScript object.
- Parameters
-
[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 73 of file core_write.cpp.
◆ TxToUniv()
◆ mapSigHashTypes
const std::map<unsigned char, std::string> mapSigHashTypes |
Initial value:=
boost::assign::map_list_of
(
static_cast<unsigned char>(
SIGHASH_ALL), std::string(
"ALL"))
(
static_cast<unsigned char>(
SIGHASH_NONE), std::string(
"NONE"))
Definition at line 56 of file core_write.cpp.