4.6 Article

A Cost Analysis of Internet of Things Sensor Data Storage on Blockchain via Smart Contracts

期刊

ELECTRONICS
卷 9, 期 2, 页码 -

出版社

MDPI
DOI: 10.3390/electronics9020244

关键词

blockchain; Internet of Things; sensor data; smart contracts

资金

  1. U.S. National Science Foundation
  2. U.S. Department of Defense [1560214]
  3. U.S. National Science Foundation [1950416]
  4. Division Of Computer and Network Systems
  5. Direct For Computer & Info Scie & Enginr [1950416] Funding Source: National Science Foundation

向作者/读者索取更多资源

Blockchain is a developing technology that can be utilized for secure data storage and sharing. In this work, we examine the cost of Blockchain-based data storage for constrained Internet of Things (IoT) devices. We had two phases in the study. In the first phase, we stored data retrieved from a temperature/humidity sensor connected to an Ethereum testnet blockchain using smart contracts in two different ways: first, appending the new data to the existing data, storing all sensor data; and second, overwriting the new data onto the existing data, storing only a recent portion of the data. In the second phase, we stored simulated data from several sensors on the blockchain assuming sensor data is numeric. We proposed a method for encoding the data from the sensors in one variable and compared the costs of storing the data in an array versus storing the encoded data from all sensors in one variable. We also compared the costs of carrying out the encoding within the smart contract versus outside the smart contract. In the first phase, our results indicate that overwriting data points is more cost-efficient than appending them. In the second phase, using the proposed encoding method to store the data from several sensors costs significantly less than storing the data in an array, if the encoding is done outside the smart contract. If the encoding is carried out in the smart contract, the cost is still less than storing the data in an array, however, the difference is not significant. The study shows that even though expensive, for applications where the integrity and transparency of data are crucial, storing IoT sensor data on Ethereum could be a reliable solution.

作者

我是这篇论文的作者
点击您的名字以认领此论文并将其添加到您的个人资料中。

评论

主要评分

4.6
评分不足

次要评分

新颖性
-
重要性
-
科学严谨性
-
评价这篇论文

推荐

暂无数据
暂无数据