The Role of Blockchain and IoT in the Future of Smart Cities and Houses