1 suggestion
Optional improvements
[suggestion] · PR description still describes the superseded witness-first approach
The supplied PR description promises witness-first checks before scriptSig evaluation, but the final code removes evaluation and checks the scriptSig template first.
Location: src/common/bip352.cpp:211 (head).
Details and suggested fix
The description says to “check the witness (and the cheap pubkey size check) before evaluating the scriptSig.” The final implementation instead replaces EvalScript and redeem-script solving with an exact P2SH-P2WPKH template match, then checks the witness and public key. Update the description to explain this consensus-enforced template matching rather than check reordering. Otherwise it misdescribes the implementation and, if copied into a merge commit, would preserve that inaccurate explanation in the history. This is a metadata correction, not a behavioral defect.