Follow-up ideas for this pull requests are:
- The linearize scripts should be adjusted to apply any XOR, if it exists. C.f https://github.com/bitcoin/bitcoin/pull/28052/files#diff-cabb34205d48861dbb53b2ad0df92776bf7d917150caf17778e15fbc8e63e123R30
- A new test for undo data can be written: https://github.com/bitcoin/bitcoin/pull/28052/files#r1597462109
Originally posted by @maflcko in #28052 (comment)