Next Article in Journal
A Reciprocating Motion Control Strategy of Single-Cylinder Free-Piston Engine Generator
Previous Article in Journal
Complex Bianisotropy Effect on the Propagation Constant of a Shielded Multilayered Coplanar Waveguide Using Improved Full Generalized Exponential Matrix Technique
Open AccessFeature PaperArticle

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

1
TSYS School of Computer Science, Columbus State University, Columbus, GA 31907, USA
2
Department of Electrical and Computer Engineering, Ana G. Méndez University, Gurabo, PR 00777, USA
*
Author to whom correspondence should be addressed.
Electronics 2020, 9(2), 244; https://doi.org/10.3390/electronics9020244
Received: 30 November 2019 / Revised: 23 January 2020 / Accepted: 26 January 2020 / Published: 2 February 2020
(This article belongs to the Section Computer Science & Engineering)
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. View Full-Text
Keywords: blockchain; Internet of Things; sensor data; smart contracts blockchain; Internet of Things; sensor data; smart contracts
Show Figures

Figure 1

MDPI and ACS Style

Kurt Peker, Y.; Rodriguez, X.; Ericsson, J.; Lee, S.J.; Perez, A.J. A Cost Analysis of Internet of Things Sensor Data Storage on Blockchain via Smart Contracts. Electronics 2020, 9, 244. https://doi.org/10.3390/electronics9020244

AMA Style

Kurt Peker Y, Rodriguez X, Ericsson J, Lee SJ, Perez AJ. A Cost Analysis of Internet of Things Sensor Data Storage on Blockchain via Smart Contracts. Electronics. 2020; 9(2):244. https://doi.org/10.3390/electronics9020244

Chicago/Turabian Style

Kurt Peker, Yeşem; Rodriguez, Xavier; Ericsson, James; Lee, Suk J.; Perez, Alfredo J. 2020. "A Cost Analysis of Internet of Things Sensor Data Storage on Blockchain via Smart Contracts" Electronics 9, no. 2: 244. https://doi.org/10.3390/electronics9020244

Find Other Styles
Note that from the first issue of 2016, MDPI journals use article numbers instead of page numbers. See further details here.

Article Access Map by Country/Region

1
Search more from Scilit
 
Search
Back to TopTop