Embedding Smart Contract in Blockchain Transactions to Improve Flexibility for the IoT

Hong Su,Bing Guo,Yan Shen,Xinhua Suo
DOI: https://doi.org/10.1109/jiot.2022.3163582
IF: 10.6
2022-01-01
IEEE Internet of Things Journal
Abstract:In recent years, the blockchain technology has been widely used in the Internet of Things (IoT). One of the major concerns is how to adopt a smart contract to process data from IoT devices flexibly. While plenty of smart contract-based methods can be used, smart contracts are required to be deployed previously. This requires an additional step (to deploy a smart contract) and makes a smart contract separate from its data (transactions to trigger its interface), which generates limitations in IoT scenarios. In this article, we developed an approach to embed the smart contract and its data into the same transaction, eliminating the need for a predeployment step. Data is employed as parameters to invoke the interface of a smart contract, and the smart contract is used to process the data inside the transaction. With this method, a smart contract does not need other transactions from the user. Results indicate that the proposed method can eliminate the requirement of a separately deployed smart contract, saving costs, and waiting time for the predeployment.
What problem does this paper attempt to address?