#include <script/sighashtype.h>
#include <functional>
#include <string>
#include <vector>
Go to the source code of this file.
|
| CScript | ParseScript (const 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) |
| |
| bool | DecodeHexBlockHeader (CBlockHeader &, const std::string &hex_header) |
| |
| bool | ParseHashStr (const std::string &strHex, uint256 &result) |
| | Parse a hex string into 256 bits. More...
|
| |
| std::vector< uint8_t > | ParseHexUV (const UniValue &v, const std::string &strName) |
| |
| SigHashType | ParseSighashString (const UniValue &sighash) |
| |
| std::string | FormatScript (const CScript &script) |
| |
| std::string | EncodeHexTx (const CTransaction &tx) |
| |
| std::string | SighashToStr (uint8_t sighash_type) |
| |
| void | ScriptPubKeyToUniv (const CScript &scriptPubKey, UniValue &out, bool fIncludeHex) |
| |
| void | ScriptToUniv (const CScript &script, UniValue &out, bool include_address) |
| |
| void | TxToUniv (const CTransaction &tx, const BlockHash &hashBlock, UniValue &entry, bool include_hex=true, const CTxUndo *txundo=nullptr, TxVerbosity verbosity=TxVerbosity::SHOW_DETAILS, std::function< bool(const CTxOut &)> is_change_func={}) |
| |
◆ TxVerbosity
Verbose level for block's transaction.
| Enumerator |
|---|
| SHOW_TXID | Only TXID for each block's transaction.
|
| SHOW_DETAILS | Include TXID, inputs, outputs, and other common block's transaction information.
|
| SHOW_DETAILS_AND_PREVOUT | The same as previous option with information about prevouts if available.
|
Definition at line 29 of file core_io.h.
◆ DecodeHexBlk()
| bool DecodeHexBlk |
( |
CBlock & |
block, |
|
|
const std::string & |
strHexBlk |
|
) |
| |
◆ DecodeHexBlockHeader()
| bool DecodeHexBlockHeader |
( |
CBlockHeader & |
header, |
|
|
const std::string & |
hex_header |
|
) |
| |
◆ DecodeHexTx()
◆ EncodeHexTx()
◆ FormatScript()
| std::string FormatScript |
( |
const CScript & |
script | ) |
|
◆ ParseHashStr()
| bool ParseHashStr |
( |
const std::string & |
strHex, |
|
|
uint256 & |
result |
|
) |
| |
Parse a hex string into 256 bits.
- Parameters
-
| [in] | strHex | a hex-formatted, 64-character string |
| [out] | result | the result of the parasing |
- Returns
- true if successful, false if not
- See also
- ParseHashV for an RPC-oriented version of this
Definition at line 250 of file core_read.cpp.
◆ ParseHexUV()
| std::vector< uint8_t > ParseHexUV |
( |
const UniValue & |
v, |
|
|
const std::string & |
strName |
|
) |
| |
◆ ParseScript()
| CScript ParseScript |
( |
const std::string & |
s | ) |
|
◆ ParseSighashString()
◆ 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 106 of file core_write.cpp.
◆ ScriptToUniv()
| void ScriptToUniv |
( |
const CScript & |
script, |
|
|
UniValue & |
out, |
|
|
bool |
include_address |
|
) |
| |
◆ SighashToStr()
| std::string SighashToStr |
( |
uint8_t |
sighash_type | ) |
|
◆ TxToUniv()