The chainstate key is stored in LevelDB under the key "\000obfuscate_key". (#6650)
The block and undo data key is stored in the file blocks/xor.dat. (#28052)
Both obfuscation keys are logged on startup. They can be found in debug.log by searching for “obfuscation key”.










