Smart Contracts and IoT Data Security