Can Bitcoin Core Undo Files Restore Wallet Private Keys?
No. Bitcoin Core undo files contain information needed to reverse changes to the UTXO set when blocks are disconnected. They do not store the private keys that authorize spending.
A restored coin includes its locking script, amount and relevant creation metadata. Those fields let the node validate future spends, but they do not reveal the secret required to produce a valid signature. A public key or a script commitment is not a substitute for that secret.
Wallet recovery requires the appropriate private keys, seed material, signing devices or other credentials required by the spending policy. Public descriptors may also be needed to reconstruct the correct scripts and derivation paths. A watch-only descriptor can identify funds without granting spending authority.
Keep wallet backups separate from block and undo files. Rebuilding a node database can restore network state, but it cannot recreate independently generated wallet secrets that have been lost.
Primary reference
Bitcoin Core undo data structures: https://github.com/bitcoin/bitcoin/blob/master/src/undo.h
