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

被引:7
|
作者
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
相关论文
共 50 条
  • [1] SSHCEth: Secure Smart Home Communications based on Ethereum Blockchain and Smart Contract
    Bourian, Imad
    Sebbar, Anass
    Chougdali, Khalid
    Amhoud, El Mehdi
    [J]. IEEE CONFERENCE ON GLOBAL COMMUNICATIONS, GLOBECOM, 2023, : 2674 - 2679
  • [2] Design Patterns for Smart Contract in Ethereum
    Destefanis, Giuseppe
    [J]. 2021 IEEE 18TH INTERNATIONAL CONFERENCE ON SOFTWARE ARCHITECTURE COMPANION (ICSA-C), 2021, : 121 - 122
  • [3] Design and Implementation of Second-hand goods renting System Based On Ethereum Smart Contract
    Li Tiansong
    Liu Yu
    [J]. 2019 4TH INTERNATIONAL CONFERENCE ON INTELLIGENT INFORMATION PROCESSING (ICIIP 2019), 2019, : 347 - 352
  • [4] Ethereum-based Emergency Service for Smart Home System: Smart Contract Implementation
    Aung, Yu Nandar
    Tantidham, Thitinan
    [J]. 2019 21ST INTERNATIONAL CONFERENCE ON ADVANCED COMMUNICATION TECHNOLOGY (ICACT): ICT FOR 4TH INDUSTRIAL REVOLUTION, 2019, : 147 - 152
  • [5] Design and Implementation of a Loan System Based on Smart Contract
    Yang, Qi
    Xu, Fangfang
    Zhang, Yu
    Liu, Fang
    Hu, Wei
    Liao, Qinghan
    [J]. SMART BLOCKCHAIN, 2018, 11373 : 22 - 31
  • [6] An Adversarial Smart Contract Honeypot in Ethereum
    Han, Yu
    Ji, Tiantian
    Wang, Zhongru
    Liu, Hao
    Jiang, Hai
    Wang, Wendi
    Cui, Xiang
    [J]. CMES-COMPUTER MODELING IN ENGINEERING & SCIENCES, 2021, 128 (01): : 247 - 267
  • [7] Defining Smart Contract Defects on Ethereum
    Chen, Jiachi
    Xia, Xin
    Lo, David
    Grundy, John
    Luo, Xiapu
    Chen, Ting
    [J]. IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2022, 48 (01) : 327 - 345
  • [8] A Runtime Information Based Defense Technique for Ethereum Smart Contract
    Xiang J.
    Yang Z.
    Zhou S.
    Yang M.
    [J]. Jisuanji Yanjiu yu Fazhan/Computer Research and Development, 2021, 58 (04): : 834 - 848
  • [9] Analyzing Ethereum Smart Contract Vulnerabilities at Scale Based on Inter-Contract Dependency
    Lyu, Qiuyun
    Ma, Chenhao
    Shen, Yanzhao
    Jiao, Shaopeng
    Sun, Yipeng
    Hu, Liqin
    [J]. CMES-COMPUTER MODELING IN ENGINEERING & SCIENCES, 2023, 135 (02): : 1625 - 1647
  • [10] An efficient approach to secure smart contract of Ethereum blockchain using hybrid security analysis approach
    Kushwaha, Satpal Singh
    Joshi, Sandeep
    Gupta, Amit Kumar
    [J]. JOURNAL OF DISCRETE MATHEMATICAL SCIENCES & CRYPTOGRAPHY, 2023, 26 (05): : 1499 - 1517