Blockchain for smart cities: applications for IoT and video surveillance systems