The Design and Implementation of a Secure Datastore Based on Ethereum Smart Contract

被引:9
作者
Aldyaflah, Izdehar M. [1 ]
Zhao, Wenbing [1 ]
Upadhyay, Himanshu [2 ]
Lagos, Leonel [2 ]
机构
[1] Cleveland State Univ, Dept Elect Engn & Comp Sci, Cleveland, OH 44115 USA
[2] Florida Int Univ, Appl Res Ctr, Miami, FL 33174 USA
来源
APPLIED SCIENCES-BASEL | 2023年 / 13卷 / 09期
基金
美国能源部;
关键词
blockchain; smart contract; data immutability; datastore; user access control; role-based authentication; gas consumption; IPFS; PRIVACY PROTECTION; BLOCKCHAIN;
D O I
10.3390/app13095282
中图分类号
O6 [化学];
学科分类号
0703 ;
摘要
In this paper, we present a secure datastore based on an Ethereum smart contract. Our research is guided by three research questions. First, we will explore to what extend a smart-contract-based datastore should resemble a traditional database system. Second, we will investigate how to store the data in a smart-contract-based datastore for maximum flexibility while minimizing the gas consumption. Third, we seek answers regarding whether or not a smart-contract-based datastore should incorporate complex processing such as data encryption and data analytic algorithms. The proposed smart-contract-based datastore aims to strike a good balance between several constraints: (1) smart contracts are publicly visible, which may create a confidentiality concern for the data stored in the datastore; (2) unlike traditional database systems, the Ethereum smart contract programming language (i.e., Solidity) offers very limited data structures for data management; (3) all operations that mutate the blockchain state would incur financial costs and the developers for smart contracts must make sure sufficient gas is provisioned for every smart contract call, and ideally, the gas consumption should be minimized. Our investigation shows that although it is essential for a smart-contract-based datastore to offer some basic data query functionality, it is impractical to offer query flexibility that resembles that of a traditional database system. Furthermore, we propose that data should be structured as tag-value pairs, where the tag serves as a non-unique key that describes the nature of the value. We also conclude that complex processing should not be allowed in the smart contract due to the financial burden and security concerns. The tag-based secure datastore designed this way also defines its applicative perimeter, i.e., only applications that align with our strategy would find the proposed datastore a good fit. Those that would rather incur higher financial cost for more data query flexibility and/or less user burden on data pre- and post-processing would find the proposed database too restrictive.
引用
收藏
页数:29
相关论文
共 47 条
[1]   PRISED tangle: a privacy-aware framework for smart healthcare data sharing using IOTA tangle [J].
Abdullah, Sidrah ;
Arshad, Junaid ;
Khan, Muhammad Mubashir ;
Alazab, Mamoun ;
Salah, Khaled .
COMPLEX & INTELLIGENT SYSTEMS, 2023, 9 (03) :3023-3041
[2]   The Impact of Block Parameters on the Throughput and Security of Blockchains [J].
Akbari, Elham ;
Zhao, Wenbing ;
Yang, Shunkun ;
Luo, Xiong .
2020 2ND INTERNATIONAL CONFERENCE ON BLOCKCHAIN TECHNOLOGY (ICBCT 2020), 2020, :13-18
[3]   IoT Data Privacy via Blockchains and IPFS [J].
Ali, Muhammad Salek ;
Dolui, Koustabh ;
Antonelli, Fabio .
IOT'17: PROCEEDINGS OF THE SEVENTH INTERNATIONAL CONFERENCE ON THE INTERNET OF THINGS, 2017, :104-110
[4]   Using Ethereum Smart Contracts to Store and Share COVID-19 Patient Data [J].
Batchu, Sai ;
Patel, Karan ;
Henry, Owen S. ;
Mohamed, Aleem ;
Agarwal, Ank A. ;
Hundal, Henna ;
Joshi, Aditya ;
Thoota, Sankeerth ;
Patel, Urvish K. .
CUREUS JOURNAL OF MEDICAL SCIENCE, 2022, 14 (01)
[5]   Database security - Concepts, approaches, and challenges [J].
Bertino, E ;
Sandhu, R .
IEEE TRANSACTIONS ON DEPENDABLE AND SECURE COMPUTING, 2005, 2 (01) :2-19
[6]  
Bhandary Mohan, 2020, 2020 International Conference on Electronics and Sustainable Communication Systems (ICESC). Proceedings, P697, DOI 10.1109/ICESC48915.2020.9155563
[7]   Blockchain based searchable encryption for electronic health record sharing [J].
Chen, Lanxiang ;
Lee, Wai-Kong ;
Chang, Chin-Chen ;
Choo, Kim-Kwang Raymond ;
Zhang, Nan .
FUTURE GENERATION COMPUTER SYSTEMS-THE INTERNATIONAL JOURNAL OF ESCIENCE, 2019, 95 (420-429) :420-429
[8]  
Denning D.E. R., 1982, Cryptography and Data Security, V112
[9]  
Fauziah Z, 2020, Aptisi Transactions On Technopreneurship (ATT), V2, P160, DOI [10.34306/att.v2i2.97, 10.34306/att.v2i2.97, DOI 10.34306/ATT.V2I2.97]
[10]   Securing Environmental IoT Data Using Masked Authentication Messaging Protocol in a DAG-Based Blockchain: IOTA Tangle [J].
Gangwani, Pranav ;
Perez-Pons, Alexander ;
Bhardwaj, Tushar ;
Upadhyay, Himanshu ;
Joshi, Santosh ;
Lagos, Leonel .
FUTURE INTERNET, 2021, 13 (12)