Blockchain Application in Simulated Environment for Cyber-Physical Systems Security