Inside Bitcoin
Opening the selected file…
Inside Bitcoin
Opening the selected file…
The code behind the network, with room to understand it.
Release published 2026-10-28 · Snapshot fetched 2026-11-01. Latest stable release at fetch time; development branches and Git history are excluded. Only the selected code window and visible folders load here.
1251assert(*parsed == *parsed2);1252}1254/* Fuzz tests that test parsing from a script, and roundtripping via script. */1255FUZZ_TARGET(miniscript_script)1256{1257FuzzedDataProvider fuzzed_data_provider(buffer.data(), buffer.size());1258const std::optional<CScript> script = ConsumeDeserializable<CScript>(fuzzed_data_provider);1259if (!script) return;1261const ScriptParserContext script_parser_ctx{(MsCtx)fuzzed_data_provider.ConsumeBool()};1262const auto ms = miniscript::FromScript(*script, script_parser_ctx);1263if (!ms) return;1265assert(ms->ToScript(script_parser_ctx) == *script);1266}
Independent explanations by MyBitcoinExplorer. Not affiliated with or endorsed by Bitcoin Core. Guides are educational and do not replace the source or its tests.
Bitcoin Core source © its contributors, distributed under the MIT license. Original notices and bundled third-party licenses are retained in the source tree.