![]() |
Bitcoin Core
22.0.0
P2P Digital Currency
|
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) |
| Create the assembly string representation of a CScript object. More... | |
| bool | DecodeHexTx (CMutableTransaction &tx, const std::string &hex_tx, bool try_no_witness=false, bool try_witness=true) |
| 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< unsigned char > | ParseHexUV (const UniValue &v, const std::string &strName) |
| int | ParseSighashString (const UniValue &sighash) |
| UniValue | ValueFromAmount (const CAmount amount) |
| std::string | FormatScript (const CScript &script) |
| std::string | EncodeHexTx (const CTransaction &tx, const int serializeFlags=0) |
| std::string | SighashToStr (unsigned char sighash_type) |
| void | ScriptPubKeyToUniv (const CScript &scriptPubKey, UniValue &out, bool fIncludeHex, bool include_addresses) |
| void | ScriptToUniv (const CScript &script, UniValue &out, bool include_address) |
| void | TxToUniv (const CTransaction &tx, const uint256 &hashBlock, bool include_addresses, UniValue &entry, bool include_hex=true, int serialize_flags=0, const CTxUndo *txundo=nullptr) |
| bool DecodeHexBlk | ( | CBlock & | , |
| const std::string & | strHexBlk | ||
| ) |
Definition at line 222 of file core_read.cpp.
| bool DecodeHexBlockHeader | ( | CBlockHeader & | , |
| const std::string & | hex_header | ||
| ) |
Definition at line 208 of file core_read.cpp.
| bool DecodeHexTx | ( | CMutableTransaction & | tx, |
| const std::string & | hex_tx, | ||
| bool | try_no_witness = false, |
||
| bool | try_witness = true |
||
| ) |
Definition at line 198 of file core_read.cpp.
| std::string EncodeHexTx | ( | const CTransaction & | tx, |
| const int | serializeFlags = 0 |
||
| ) |
Definition at line 137 of file core_write.cpp.
| std::string FormatScript | ( | const CScript & | script | ) |
| bool ParseHashStr | ( | const std::string & | strHex, |
| uint256 & | result | ||
| ) |
Parse a hex string into 256 bits.
| [in] | strHex | a hex-formatted, 64-character string |
| [out] | result | the result of the parsing |
Definition at line 239 of file core_read.cpp.
| std::vector<unsigned char> ParseHexUV | ( | const UniValue & | v, |
| const std::string & | strName | ||
| ) |
Definition at line 248 of file core_read.cpp.
| CScript ParseScript | ( | const std::string & | s | ) |
Definition at line 55 of file core_read.cpp.
| int ParseSighashString | ( | const UniValue & | sighash | ) |
Definition at line 258 of file core_read.cpp.
| void ScriptPubKeyToUniv | ( | const CScript & | scriptPubKey, |
| UniValue & | out, | ||
| bool | fIncludeHex, | ||
| bool | include_addresses | ||
| ) |
Definition at line 161 of file core_write.cpp.
| std::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 92 of file core_write.cpp.
Definition at line 144 of file core_write.cpp.
| std::string SighashToStr | ( | unsigned char | sighash_type | ) |
| void TxToUniv | ( | const CTransaction & | tx, |
| const uint256 & | hashBlock, | ||
| bool | include_addresses, | ||
| UniValue & | entry, | ||
| bool | include_hex = true, |
||
| int | serialize_flags = 0, |
||
| const CTxUndo * | txundo = nullptr |
||
| ) |
Definition at line 193 of file core_write.cpp.
1.8.14