README.md

IoT Device Management

Introduction

A system that leverages Ethereum platform for identity, authentication and reputation of IoT devices. Devices are registered in a smart contract via a web interface and send cryptographically signed messages to a platform that validates them using blockchain.

Abstract

IoT is facing identity, security and interoperability problem. Current systems rely on centralized client-server model that will soon be unsatisfactory due to the rapid increase in the number of devices connected to the Internet. Blockchain is shared, distributed and decentralized ledger that allows development of decentralized applications. This thesis examines the concept of its use for registration and management of IoT devices. A system that consists of a smart contract, web interface, and device and platform has been developed. Systems users, entities, register devices within a smart contract with their control information via a web interface. Devices sign messages using private key which are sent to the platform along with control information and associated proof. Received messages are validated using blockchain, which at the end provides authentication, integrity and non-repudiation.

Concept

Below are presented four main concepts that apply to this system.

Device Identity

Device is registered without revealing it's private properties by using Merkle tree. Public key or it's representation is used as an ID.

Example of properties being hashed into Merkle root

Message Authentication

Each message is signed and validated using blockchain on receiver's end.

Generating signature

Validation

Firmware Hashing

It is possible to confirm that device is running valid firmware that hasn't been tampered with.

Device Reputation

Based on Web of Trust principle, devices can form a network of trust. The more signatures a device has from other reputable devices, the more trusted it can be.

Architecture

Consists of entities, devices and an IoT platform.

Development

Technologies used are as follows:

Ethereum

Solidity

Truffle Framework

Web3.js

React

Structure

Main folders and their content:

contracts - Smart contracts (Solidity)

frontend - Web interface (React)

simulations - Device and platform simulations

Smart Contract

See file contracts/DeviceManager.sol for full list and explanations of methods and events.