Submitted:
03 June 2024
Posted:
05 June 2024
You are already at the latest version
Abstract
Keywords:
1. Introduction
2. Literature Review
![]() |
3. Proposed Solution
3.1. System Model
3.2. Sensors and Sensor Owners
3.2.1. Sensor Service Provider
3.2.2. Sensor Data Consumers
3.2.3. Blockchain


3.3. Security Requirements for the Data Storage Framework System
3.3.1. Pseudonyms
3.3.2. Being Unlinkable and Tracability







3.3.3. A Successful Revocation
3.3.4. Authenticity
3.3.5. Confidentiality
3.3.6. Fairness
3.4. Infrastructure
4. Implementation and Evaluation
4.1. Experimental Setup
4.1.1. Smart Contract
- Programming Language: Solidity
- Compiler: Remix IDE - version 0.33.0
- Ethereum virtual machine version: Default version of compiler
- The deployment environment: Ganache
- Cryptocurrency: Ether
- Cryptocurrency wallet: Metamask
- Plugins: Debugging, deploying and running transactions, Solidity statistical analysis, and Solidity testing
4.1.2. Smart Contract Deployment Environment
4.1.3. Cryptocurrency Wallet - Metamask
4.1.4. Sensor Integration Model User Interface
4.1.5. Data Management
4.2. Implementation of Sensor Integration Model
4.3. Methods for Gathering Data
4.3.1. Sensor’s Direct Push
4.3.2. API Call
4.4. APIs Methods and Types
4.5. Evaluation Metrics
- The computational and communication cost based on smart contract gas cost.
- Fairness of the proposed model.
- Security analysis between traditional sensors data providing
4.5.1. The Computational and Communication Cost Based on Smart Contract Gas Cost
- The amount of gas cost consumed by smart contracts
- Transaction cost.
- Execution cost.
4.5.2. Fairness of the Proposed Model
4.5.3. Security Analysis Between Traditional Sensors Data Providing
5. Experimental Results and Performance Analysis
5.1. Experimental Setup Execution
5.1.1. Sensor’s Direct Push
5.1.2. API Call
5.2. Computational and Communication Cost
| GAS Cost | |
| Deployment | 2692355 gas |
| Sensor Data Provider Registration | 296978 gas |
| Search Sensor Data Provider | 0 gas |
| Register sensor | 223260 gas |
| Search Sensor | 0 gas |
| Sensor Data Consumer Registration | 324451 gas |
| Get Sensor Data Consumer | 0 gas |
| Send to contract | 49820 gas |
| Balance Received to contract | 0 gas |
| Contract to Address | 36040 gas |
| Transaction Cost | |
| Deployment | 2341842 gas |
| Sensor Data Provider Registration | 258241 gas |
| Search Sensor Data Provider | 0 gas |
| Register sensor | 194139 gas |
| Search Sensor | 0 gas |
| Sensor Data Consumer Registration | 282131 gas |
| Get Sensor Data Consumer | 0 gas |
| Send to contract | 43321 gas |
| Balance Received to contract | 0 gas |
| Contract to Address | 31339 gas |
| Execution Cost | |
| Deployment | 2124602 gas |
| Sensor Data Provider Registration | 234101 gas |
| Search Sensor Data Provider | 21378 gas |
| Register sensor | 170799 gas |
| Search Sensor | 22272 gas |
| Sensor Data Consumer Registration | 257535 gas |
| Get Sensor Data Consumer | 257535 gas |
| Send to contract | 22257 gas |
| Balance Received to contract | 2496 gas |
| Contract to Address | 9907 gas |
5.3. Fairness of The Proposed Model
5.4. Security Analysis Between Traditional Sensors Data Providing Systems
6. Conclusions
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Conflicts of Interest
References
- Hassan, R.; Qamar, F.; Hasan, M.K.; Aman, A.H.M.; Ahmed, A.S. Internet of Things and its applications: A comprehensive survey. Symmetry 2020, 12, 1674. [Google Scholar] [CrossRef]
- Haras, M.; Skotnicki, T. Thermoelectricity for IoT–A review. Nano Energy 2018, 54, 461–476. [Google Scholar] [CrossRef]
- Wei, Y.; Yuan, H.; Li, H. Exploring the Contribution of Advanced Systems in Smart City Development for the Regeneration of Urban Industrial Heritage. Buildings 2024, 14, 583. [Google Scholar] [CrossRef]
- Joyce, A.; Javidroozi, V. Smart city development: Data sharing vs. data protection legislations. Cities 2024, 148, 104859. [Google Scholar] [CrossRef]
- Almalki, F.A.; Alsamhi, S.H.; Sahal, R.; Hassan, J.; Hawbani, A.; Rajput, N.; Saif, A.; Morgan, J.; Breslin, J. Green IoT for eco-friendly and sustainable smart cities: future directions and opportunities. Mobile Networks and Applications 2023, 28, 178–202. [Google Scholar] [CrossRef]
- Ismagilova, E.; Hughes, L.; Rana, N.P.; Dwivedi, Y.K. Security, privacy and risks within smart cities: Literature review and development of a smart city interaction framework. Information Systems Frontiers, 2022; 1–22. [Google Scholar] [CrossRef]
- Kamal, S.M.A.; Kafi, N.; Samad, F.; Syed, H.J.; Durrani, M.N. Modelling Civic Problem-Solving in Smart City Using Knowledge-Based Crowdsourcing. International Journal of Computer Science & Network Security 2023, 23, 146–158. [Google Scholar]
- Wenhua, Z.; Qamar, F.; Abdali, T.A.N.; Hassan, R.; Jafri, S.T.A.; Nguyen, Q.N. Blockchain technology: security issues, healthcare applications, challenges and future trends. Electronics 2023, 12, 546. [Google Scholar] [CrossRef]
- Bahrepour, D.; Maleki, R. Benefit and limitation of using blockchain in smart cities to improve citizen services. GeoJournal 2024, 89, 57. [Google Scholar] [CrossRef]
- Chaganti, R.; Varadarajan, V.; Gorantla, V.S.; Gadekallu, T.R.; Ravi, V. Blockchain-based cloud-enabled security monitoring using internet of things in smart agriculture. Future Internet 2022, 14, 250. [Google Scholar] [CrossRef]
- Farooq, K.; Syed, H.J.; Alqahtani, S.O.; Nagmeldin, W.; Ibrahim, A.O.; Gani, A. Blockchain federated learning for in-home health monitoring. Electronics 2022, 12, 136. [Google Scholar] [CrossRef]
- Haque, A.B.; Bhushan, B.; Dhiman, G. Conceptualizing smart city applications: Requirements, architecture, security issues, and emerging trends. Expert Systems 2022, 39, e12753. [Google Scholar] [CrossRef]
- Kazmi, S.H.A.; Qamar, F.; Hassan, R.; Nisar, K. Improved QoS in Internet of Things (IoTs) through Short Messages Encryption Scheme for Wireless Sensor Communication. 2022 International Symposium on Intelligent Signal Processing and Communication Systems (ISPACS). IEEE, 2022, pp. 1–6.
- Hemamalini, V.; Mishra, A.K.; Tyagi, A.K.; Kakulapati, V. Artificial Intelligence–Blockchain-Enabled–Internet of Things-Based Cloud Applications for Next-Generation Society. Automated Secure Computing for Next-Generation Systems 2024, pp. 65–82.
- YR, S.K.; Champa, H. An extensive review on sensing as a service paradigm in iot: Architecture research challenges lessons learned and future directions. Int. J. Appl. Eng. Res 2019, 14, 1220–1243. [Google Scholar]
- Alam, M.; Emmanuel, N.; Khan, T.; Xiang, Y.; Hassan, H. Garbled role-based access control in the cloud. Journal of Ambient Intelligence and Humanized Computing 2018, 9, 1153–1166. [Google Scholar] [CrossRef]
- Zhou, L.; Varadharajan, V.; Hitchens, M. Integrating trust with cryptographic role-based access control for secure cloud data storage. 2013 12th IEEE International Conference on Trust, Security and Privacy in Computing and Communications. IEEE, 2013, pp. 560–569.
- Li, J.; Zhang, Y.; Chen, X.; Xiang, Y. Secure attribute-based data sharing for resource-limited users in cloud computing. Computers & Security 2018, 72, 1–12. [Google Scholar] [CrossRef]
- Li, J.; Yao, W.; Zhang, Y.; Qian, H.; Han, J. Flexible and fine-grained attribute-based data storage in cloud computing. IEEE Transactions on Services Computing 2016, 10, 785–796. [Google Scholar] [CrossRef]
- Lin, H.Y.; Hung, Y.M. An improved proxy Re-encryption scheme for IoT-based data outsourcing services in clouds. Sensors 2020, 21, 67. [Google Scholar] [CrossRef]
- Sun, S.; Du, R.; Chen, S.; Li, W. Blockchain-based IoT access control system: towards security, lightweight, and cross-domain. IEEE Access 2021, 9, 36868–36878. [Google Scholar] [CrossRef]
- Bentahar, A.; Meraoumia, A.; Bradji, L.; Bendjenna, H. Sensing as a service in Internet of Things: efficient authentication and key agreement scheme. Journal of King Saud University-Computer and Information Sciences 2022, 34, 5493–5509. [Google Scholar] [CrossRef]
- Noshad, Z.; Khan, A.U.; Abbas, S.; Abubaker, Z.; Javaid, N.; Shafiq, M.; Choi, J.G. An Incentive and Reputation Mechanism Based on Blockchain for Crowd Sensing Network. Journal of Sensors 2021, 2021. [Google Scholar] [CrossRef]
- Dowlatshahi, M.B.; Rafsanjani, M.K.; Gupta, B.B. An energy aware grouping memetic algorithm to schedule the sensing activity in WSNs-based IoT for smart cities. Applied Soft Computing 2021, 108, 107473. [Google Scholar] [CrossRef]
- Al Sadawi, A.; Hassan, M.S.; Ndiaye, M. A survey on the integration of blockchain with IoT to enhance performance and eliminate challenges. IEEE Access 2021, 9, 54478–54497. [Google Scholar] [CrossRef]
- Liu, Q.; Zhang, F.; Qu, L. Application Research of Intelligent Site Management System. 2023 Smart City Challenges & Outcomes for Urban Transformation (SCOUT). IEEE, 2023, pp. 201–205.
- Alam, T. Cloud-based IoT applications and their roles in smart cities. Smart Cities 2021, 4, 1196–1219. [Google Scholar] [CrossRef]
- Pradhan, N.R.; Singh, A.P. Smart contracts for automated control system in blockchain based smart cities. Journal of Ambient Intelligence and Smart Environments 2021, 13, 253–267. [Google Scholar] [CrossRef]
- Sampaio, S.; Sousa, P.R.; Martins, C.; Ferreira, A.; Antunes, L.; Cruz-Correia, R. Collecting, processing and secondary using personal and (pseudo) anonymized data in smart cities. Applied Sciences 2023, 13, 3830. [Google Scholar] [CrossRef]
- Xie, Q.; Li, K.; Tan, X.; Han, L.; Tang, W.; Hu, B. A secure and privacy-preserving authentication protocol for wireless sensor networks in smart city. EURASIP Journal on Wireless Communications and Networking 2021, 2021, 119. [Google Scholar] [CrossRef]
| 1 | Gwei (pronounced "gwee") is a unit of the cryptocurrency Ether (ETH), used on the Ethereum blockchain network. |











| Features | |
| Y | Supported |
| - | Non-Involving |
| N | Unsupported |
| Levels | |
| H | High |
| M | Medium |
| L | Low |
| Property | Our proposal | Han-Yu et al. [20] | Al Sadawi et al. [25] | Yinghui et al. [18] | Jin-Ghoo et al. [23] | Shuang et al. [21] |
| Identity Management | Y | N | N | Y | N | Y |
| Pseudonymity | Y | N | N | Y | Y | Y |
| Confidentiality | Y | Y | Y | Y | Y | N |
| Traceability | Y | - | - | Y | N | N |
| Fairness | Y | N | N | N | N | N |
| Universality | Y | Y | N | N | N | N |
| Blockchain storage | M | M | L | M | H | L |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2024 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).
