Skip to main content

Introduction

DESMO-LD

DESMO-LD is a decentralized oracle for IoT data powered by WoT technologies. Through our system, client smart contracts and DApps can access off-chain data produced by a network of sensors and other IoT devices. In addition, our system also supports the possibility for a client to activate a specific action on an actuator: this feature allows the creation of new types of contracts and applications that, upon the occurrence of certain conditions, can interact directly with the real world by changing its state. In both cases, the system provides geospatial queries capabilities to the clients; these features are fundamental for an oracle that works in close contact with the physical world. Shifting the focus to the data source side, DESMO-LD uses the W3C WoT standard as an interoperability layer. Specifically, the devices are brought into the oracle network through specialized nodes of TDDs: their job is to resolve the queries from clients in exchange for a reward in tokens. TDDs are also responsible for controlling the quality of the hosted TDs so that they always provide the highest quality data to the rest of the system. One of the primary goals of our solution is to provide a “full-stack” decentralized oracle that distributes both the computing part and data sources. For this reason, we decided to base our architecture on the iExec infrastructure and to delegate the management of the TDDs to third parties that are not necessarily linked with VAIMEE.

The DESMO-LD project aims to provide a fully integrated distributed solution for consuming IoT external data, enriched with Web of Things semantics and data model, inside the ONTOCHAIN. This addresses the ONTOCHAIN call's objectives of designing new trustful decentralized Oracles to poll semantic data from off-chain data sources. Besides, DESMO-LD introduces novel strategies to solve the known interoperability problems thanks to the heavy deployment of standard ontology and semantic oriented consensus algorithms for data quality and trustiness.

Architecture

DESMO-LD is a Decentralized Oracle for IoT data powered by WoT technologies. The system architecture is divided between an on-chain part, consisting of a set of smart contracts, and an off-chain part with the Oracle DApp and the Web of Things Thing Description Directory (TDD). The project structure is consequently organized as follows:

For an overview of the system architecture, please refer to the architecture diagram.

The system allows client Smart Contracts and DApps to access off-chain data produced by a network of IoT devices. The solution enables the development of different applications according to the vertical implementation of any horizontal features developed. The value generated by the token transactions is enhanced through the development of a “pay-per-request” subscription service to access the resources. Throughout the process to retrieve information all the actors involved will be rewarded with tokens.

On-Chain: Decentralized iExecDoracle

The on-chain part is strictly connected to the development of a decentralized network of Oracles. The value of the Decentralized Oracle lies in the trustfulness of the data provided on-chain which increases the level of security and fairness of Smart Contracts. Data and process management in cross-sectors environments mostly benefit from a Smart Contract built upon Decentralized Oracles because they can enhance the intrinsic value of getting access to multiple and heterogeneous data sources that are reliable.

Off-Chain: WoT Decentralized Data Sources

The off-chain part is linked to the Web of Thing functionality and technologies. Value is created by accessing a constant real-time stream of quality IoT data from the WoT. Moreover, it features a ranking system able to assess data sources' quality to de-incentives bad or unfair behaviour. Data streamed are organized and defined in Thing Description which manifest the interactions affordances among IoT devices or services. The generated value is enhanced through the automatic rewarding of the possessors of WTs devices that the architecture guarantee.

Main Innovation

The DESMO-LD project will focus on a trusted decentralized oracle system to reliably consume IoT data from on-chain Smart Contracts. The main innovation points consists:

  • Leverage on WoT interaction model and WoT ontology for implementing an interoperable connection layer with heterogeneous IoT systems and devices;
  • Provide trustable means to induce real world effects thanks to attenuation APIs;
  • Native support for geolocation queries and data.

Feasible scenarios of a use case

Decentralized EV sharing (DEVs) is a fully decentralized platform for electric vehicles sharing, based on blockchain and semantic technologies. Thanks to a detailed semantic description of vehicles, service providers can register their cars, scooters, or bikes in the system and users can exploit them for their needs. The blockchain technology ensures a fair and trusted exchange of services thanks to Smart Contracts and IoT Oracles.

Within the circular economy framework, possible customers of vehicles sharing (as car and scooter) are young and active people looking for a eco-friendly and low-cost means to move across cities and surroundings, tourist facilities (such as hotels, B&Bs, and restaurants) that want to provide mobility service to their customers without having to invest in and maintaining a fleet of vehicles, and users or private organizations who want to share their own vehicles with the community in exchange for a profit . The customer engagement solution involves CO2 tokens for users that choose the platform for their travels, together with a reputation system and score based rewards. Moreover, the suppliers of the vehicle can repay the initial investment for the vehicle fleet. Part of the transaction fees of each user payment will cover the insurance for vehicle suppliers while the residual part will become profit.

  1. Users : a user is seeking a vehicle and through the DApp he/she can visualize a list of the vehicles nearby and the user chooses accordingly. The user stakes some tokens for reserving the vehicle for a certain amount of time. The on-chain protocol unlocks the vehicle only after the payment is verified. Then the user is allowed to reach the destination. Eventually, the process is concluded and the tokens are distributed between the parties. In this final phase penalties and bonuses are calculated and applied.
  2. Facilities: touristic facilities reserve a part of the community driven fleet for their own users as an additional service included in their offering. Facilities can customize fleet behavior and management.
  3. Suppliers: users or organizations can register their devices and set a fair price per hour on-chain and they become part of the fleet. When users or facilities rent their vehicles, suppliers are paid accordingly.

NGI

Acknowledgements

This project has received funding from the European Union’s Horizon 2020 research and innovation program through the NGI ONTOCHAIN program under cascade funding agreement No 957338