fn to_stored_hash(&self) -> U256 {
        let (header, preimage) = match self {
            Self::ZkEVM(header, preimage) => (header, preimage),
            Self::Evm(header, preimage) => (header, preimage),
        };

        let mut hash = [0u8; 32];
        hash[0..4].copy_from_slice(&header.0);
        hash[4..32].copy_from_slice(&preimage.0);

        // Hash[1] is used in both of the versions to denote whether the bytecode is being constructed.
        // We ignore this param.
        hash[1] = 0;

        h256_to_u256(H256(hash))
    }
Returns the hash in the format it is stored in the DB.
core/lib/multivm/src/versions/vm_latest/old_vm/oracles/decommitter.rs