Design and approach
Make script assembly and raw hex distinguishable (src/bitcoin-util.cpp:312, head)
Hex-first autodetection makes 10 ambiguous: it is treated as raw byte 0x10 (a truncated OP_PUSHDATA1), rather than the assembly token 10 (OP_10). Users can work around this case with OP_10, but that does not provide a general way to select the input format unambiguously. An explicit assembly/hex selector or format prefix would resolve the ambiguity while retaining autodetection for convenience.
Avoid requiring unrelated prevouts for non-tapscript checks (src/bitcoin-util.cpp:342, head)
Whenever -tx is supplied, this requires a spent output for every input, even when evaluating one base or witness-v0 input. Base signature and locktime/sequence checks need no spent output; witness-v0 needs only the selected input's amount. Requiring unrelated prevout data adds work when inspecting one input of a multi-input transaction. Consider accepting no spent outputs for base checks, only the selected output for witness-v0, and retaining the complete requirement for tapscript, whose signature hash uses all spent outputs.
🟡 Minor
Tapscript budget can differ from the supplied transaction (src/bitcoin-util.cpp:414, head)
For a matching tapscript spend, this initializes the budget from only the command-line stack and script, omitting the control block and any annex. Consensus initializes it from the serialized full witness (interpreter.cpp:2000), and each nonempty tapscript signature check deducts 50 units. Near a budget boundary, evalscript can therefore report failure for a spend consensus accepts. Although the code calls the value an approximation, the output presents an unqualified success result. Use the matching full witness when available, or clearly mark or restrict results whose budget is approximate.
Validate initial stack elements in base mode (src/bitcoin-util.cpp:447, head)
The initial stack is supplied directly by the caller, but this check excludes BASE. EvalScript checks the sizes of values pushed by the script and the stack count after executed opcodes; as a result, a base-mode no-op script with a truthy initial element larger than MAX_SCRIPT_ELEMENT_SIZE can return success. Valid base-script execution cannot produce such an element. Validate base-mode initial stack limits too, or distinguish arbitrary interpreter-state evaluation from a consensus-valid result.
💡 Suggestion
Test transaction-backed signature validation (test/functional/data/util/bitcoin-util-test.json:824, head)
None of the added evalscript functional cases supplies -tx or -spentoutput, so they do not cover the transaction decoding and checker setup used for real signature validation. Add a case based on the documented valid-signature example and a paired case with a modified signature; assert that dummy_sig_checker is false in both. This would cover the advertised transaction-backed path without changing its behavior.
Review coverage was incomplete. The adversarial review had incomplete evidence. The adversarial_glm review did not complete.