If you want to use this code, please cite our article describing this solution. https://www.mdpi.com/1424-8220/19/4/856
MDPI and ACS Style Košťál, K.; Helebrandt, P.; Belluš, M.; Ries, M.; Kotuliak, I. Management and Monitoring of IoT Devices Using Blockchain. Sensors 2019, 19, 856.