![]() |
Bitcoin Core 30.99.0
P2P Digital Currency
|
#include <test/data/script_tests.json.h>#include <test/data/bip341_wallet_vectors.json.h>#include <common/system.h>#include <core_io.h>#include <key.h>#include <rpc/util.h>#include <script/interpreter.h>#include <script/script.h>#include <script/script_error.h>#include <script/sigcache.h>#include <script/sign.h>#include <script/signingprovider.h>#include <script/solver.h>#include <streams.h>#include <test/util/json.h>#include <test/util/random.h>#include <test/util/setup_common.h>#include <test/util/transaction_utils.h>#include <util/fs.h>#include <util/strencodings.h>#include <util/string.h>#include <cstdint>#include <fstream>#include <string>#include <vector>#include <boost/test/unit_test.hpp>#include <secp256k1.h>#include <univalue.h>Go to the source code of this file.
Classes | |
| struct | ScriptErrorDesc |
| struct | ScriptTest |
Macros | |
| #define | CHECK_SCRIPT_STATIC_SIZE(script, expected_size) |
| #define | CHECK_SCRIPT_DYNAMIC_SIZE(script, expected_size, expected_extra) |
Functions | |
| script_verify_flags | ParseScriptFlags (std::string strFlags) |
| static std::string | FormatScriptFlags (script_verify_flags flags) |
| static std::string | FormatScriptError (ScriptError_t err) |
| static ScriptError_t | ParseScriptError (const std::string &name) |
| static void | NegateSignatureS (std::vector< unsigned char > &vchSig) |
| BOOST_AUTO_TEST_CASE (script_build) | |
| BOOST_AUTO_TEST_CASE (script_json_test) | |
| BOOST_AUTO_TEST_CASE (script_PushData) | |
| BOOST_AUTO_TEST_CASE (script_cltv_truncated) | |
| static CScript | sign_multisig (const CScript &scriptPubKey, const std::vector< CKey > &keys, const CTransaction &transaction) |
| static CScript | sign_multisig (const CScript &scriptPubKey, const CKey &key, const CTransaction &transaction) |
| BOOST_AUTO_TEST_CASE (script_CHECKMULTISIG12) | |
| BOOST_AUTO_TEST_CASE (script_CHECKMULTISIG23) | |
| static TxoutType | GetTxoutType (const CScript &output_script) |
| Return the TxoutType of a script without exposing Solver details. More... | |
| BOOST_AUTO_TEST_CASE (script_size_and_capacity_test) | |
| SignatureData | CombineSignatures (const CTxOut &txout, const CMutableTransaction &tx, const SignatureData &scriptSig1, const SignatureData &scriptSig2) |
| BOOST_AUTO_TEST_CASE (script_combineSigs) | |
| BOOST_AUTO_TEST_CASE (sign_invalid_miniscript) | |
| Reproduction of an exception incorrectly raised when parsing a public key inside a TapMiniscript. More... | |
| BOOST_AUTO_TEST_CASE (sign_paytoanchor) | |
| BOOST_AUTO_TEST_CASE (script_standard_push) | |
| BOOST_AUTO_TEST_CASE (script_IsPushOnly_on_invalid_scripts) | |
| BOOST_AUTO_TEST_CASE (script_GetScriptAsm) | |
| template<typename T > | |
| CScript | ToScript (const T &byte_container) |
| BOOST_AUTO_TEST_CASE (script_byte_array_u8_vector_equivalence) | |
| BOOST_AUTO_TEST_CASE (script_FindAndDelete) | |
| BOOST_AUTO_TEST_CASE (script_HasValidOps) | |
| BOOST_AUTO_TEST_CASE (bip341_keypath_test_vectors) | |
| BOOST_AUTO_TEST_CASE (compute_tapbranch) | |
| BOOST_AUTO_TEST_CASE (compute_tapleaf) | |
| BOOST_AUTO_TEST_CASE (formatscriptflags) | |
Variables | |
| static const script_verify_flags | gFlags = SCRIPT_VERIFY_P2SH | SCRIPT_VERIFY_STRICTENC |
| static ScriptErrorDesc | script_errors [] |
| #define CHECK_SCRIPT_DYNAMIC_SIZE | ( | script, | |
| expected_size, | |||
| expected_extra | |||
| ) |
Definition at line 1174 of file script_tests.cpp.
| #define CHECK_SCRIPT_STATIC_SIZE | ( | script, | |
| expected_size | |||
| ) |
Definition at line 1167 of file script_tests.cpp.
| BOOST_AUTO_TEST_CASE | ( | bip341_keypath_test_vectors | ) |
| BOOST_AUTO_TEST_CASE | ( | compute_tapbranch | ) |
| BOOST_AUTO_TEST_CASE | ( | compute_tapleaf | ) |
| BOOST_AUTO_TEST_CASE | ( | formatscriptflags | ) |
| BOOST_AUTO_TEST_CASE | ( | script_build | ) |
| BOOST_AUTO_TEST_CASE | ( | script_byte_array_u8_vector_equivalence | ) |
Definition at line 1494 of file script_tests.cpp.
| BOOST_AUTO_TEST_CASE | ( | script_CHECKMULTISIG12 | ) |
| BOOST_AUTO_TEST_CASE | ( | script_CHECKMULTISIG23 | ) |
| BOOST_AUTO_TEST_CASE | ( | script_cltv_truncated | ) |
| BOOST_AUTO_TEST_CASE | ( | script_combineSigs | ) |
| BOOST_AUTO_TEST_CASE | ( | script_FindAndDelete | ) |
| BOOST_AUTO_TEST_CASE | ( | script_GetScriptAsm | ) |
| BOOST_AUTO_TEST_CASE | ( | script_HasValidOps | ) |
| BOOST_AUTO_TEST_CASE | ( | script_IsPushOnly_on_invalid_scripts | ) |
Definition at line 1446 of file script_tests.cpp.
| BOOST_AUTO_TEST_CASE | ( | script_json_test | ) |
| BOOST_AUTO_TEST_CASE | ( | script_PushData | ) |
| BOOST_AUTO_TEST_CASE | ( | script_size_and_capacity_test | ) |
| BOOST_AUTO_TEST_CASE | ( | script_standard_push | ) |
| BOOST_AUTO_TEST_CASE | ( | sign_invalid_miniscript | ) |
Reproduction of an exception incorrectly raised when parsing a public key inside a TapMiniscript.
Definition at line 1392 of file script_tests.cpp.
| BOOST_AUTO_TEST_CASE | ( | sign_paytoanchor | ) |
| SignatureData CombineSignatures | ( | const CTxOut & | txout, |
| const CMutableTransaction & | tx, | ||
| const SignatureData & | scriptSig1, | ||
| const SignatureData & | scriptSig2 | ||
| ) |
Definition at line 1262 of file script_tests.cpp.
|
static |
|
static |
Definition at line 99 of file script_tests.cpp.
Return the TxoutType of a script without exposing Solver details.
Definition at line 1161 of file script_tests.cpp.
|
static |
|
static |
| script_verify_flags ParseScriptFlags | ( | std::string | strFlags | ) |
|
static |
|
static |
Definition at line 1032 of file script_tests.cpp.
| CScript ToScript | ( | const T & | byte_container | ) |
Definition at line 1488 of file script_tests.cpp.
|
static |
Definition at line 43 of file script_tests.cpp.
|
static |
Definition at line 53 of file script_tests.cpp.