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

被引:36
作者
Peker, Yesem Kurt [1 ]
Rodriguez, Xavier [2 ]
Ericsson, James [1 ]
Lee, Suk Jin [1 ]
Perez, Alfredo J. [1 ]
机构
[1] Columbus State Univ, TSYS Sch Comp Sci, Columbus, GA 31907 USA
[2] Ana G Mendez Univ, Dept Elect & Comp Engn, Gurabo, PR 00777 USA
基金
美国国家科学基金会;
关键词
blockchain; Internet of Things; sensor data; smart contracts; ARCHITECTURAL ELEMENTS; IOT; CHALLENGES; SYSTEM;
D O I
10.3390/electronics9020244
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
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.
引用
收藏
页数:14
相关论文
共 42 条
[1]  
[Anonymous], INTERNET THINGS SMAR
[2]  
[Anonymous], COMMUNICATIONS COMPU
[3]  
[Anonymous], P 2017 IEEE INT C PE
[4]  
[Anonymous], 2017, P 2017 IEEE 16 INT S
[5]  
[Anonymous], IOT NUMB CONN DEV WO
[6]  
[Anonymous], 2019, BEIGEPAPER ETHEREUM
[7]  
[Anonymous], 1996, Extropy
[8]  
[Anonymous], P 2018 IEEE INT C IN
[9]  
[Anonymous], P 2019 ACM SE C KENN
[10]  
Ayed A.B., 2017, INT J NETWORK SECURI, V9, P01