Research on an On-Chain and Off-Chain Collaborative Storage Method Based on Blockchain and IPFS
Abstract
1. Introduction
- (1)
- We have developed an on-chain and off-chain collaborative storage model IPFS-BC, which effectively ensures data integrity and immutability. Through smart contract collaboration, users need to verify their identity and permission to upload data when accessing data. The system also implements efficient file retrieval, sharing, and access control functions through strict data management during query verification.
- (2)
- Storage expansion and reduction in blockchain storage pressure. Large scale data is stored off-chain, achieving good scalability. The pressure on nodes within the blockchain block is shared with the IPFS system, and only the hash value of the data needs to be stored through smart contracts, optimizing storage space usage.
- (3)
- Reduce storage costs. The cost of storing data in blockchain systems is high. Storing data off-chain and on-chain only requires storing small-scale data such as hashes, greatly saving storage costs.
2. Related Theories and Technologies
2.1. DHT Off-Chain Protocol
2.2. Cloud Storage
2.3. InterPlanetary File System (IPFS)
2.4. FISCO BCOS Consortium Blockchain
2.5. Hybrid Blockchain Architecture
3. Proposed IPFS-BC Storage Model
3.1. Model Description
3.1.1. Blockchain Layer
3.1.2. IPFS Layer
3.1.3. Smart Contract Layer
3.2. Model Design
3.2.1. Data Upload and Storage
3.2.2. Data Query and Verification
- (1)
- On-Chain Query of the File Hash Value
- (2)
- Retrieving the File Content from the IPFS System
- (3)
- On-Chain and Off-Chain Data Comparison and Verification
3.2.3. Efficient Management and Access Control
- (1)
- File Storage and Access Control
- (2)
- File Storage and Access Control Management Algorithm
- 1.
- Identity Authentication Phase
- 2.
- File Upload and Access Authorization Phase
- 3.
- File Storage Optimization Phase
- 4.
- Efficient Management and Audit Smart Contract Logic
4. Experimental Results and Analysis
4.1. Experimental Environment
4.2. Storage Space and Resource Consumption Analysis
4.3. Storage Performance Analysis
4.4. Security Analysis
5. Discussion
6. Conclusions
Author Contributions
Funding
Data Availability Statement
Conflicts of Interest
Abbreviations
| AMDB | Advanced Multi-Dimensional Database |
| CID | Content Identifier |
| CoCFL | Collaborative Off-Chain Federated Learning |
| DHT | Distributed Hash Table |
| EVM | Ethereum Virtual Machine |
| FISCO BCOS | Financial Blockchain Shenzhen Open Source |
| IoT | Internet of Things |
| IPFS | InterPlanetary File System |
| IPFS-BC | IPFS–Blockchain On-Chain/Off-Chain Collaborative Storage Model |
| JSON-RPC | JavaScript Object Notation–Remote Procedure Call |
| Merkle-DAG | Merkle Directed Acyclic Graph |
| P2P | Peer-to-Peer |
| PBFT | Practical Byzantine Fault Tolerance |
| QoS | Quality of Service |
| RPC | Remote Procedure Call |
| SDK | Software Development Kit |
References
- Tripathi, G.; Ahad, M.A.; Casalino, G. A Comprehensive Review of Blockchain Technology: Underlying Principles and Historical Background with Future Challenges. Digit. Appl. 2023, 9, 100344. [Google Scholar] [CrossRef]
- Gao, Z.T. Application of Internet of Things and Block-chain Technology in Improving Supply Chain Financial Risk Management System. IETE J. Res. 2023, 69, 6878–6887. [Google Scholar] [CrossRef]
- Singh, S.K.; Park, J.H.; Sharma, P.K.; Pan, Y. BlIoVT: Blockchain-Based Secure Storage Architecture for Intelligent Internet of Vehicular Things. IEEE Consum. Electron. Mag. 2022, 11, 75–82. [Google Scholar] [CrossRef]
- Park, J.; Jeong, S.; Yeom, K. Blockchain transaction refinery: A traceability refinement mechanism to improve the analysis of permissioned blockchain transactions. J. King Saud Univ. Comput. Inf. Sci. 2025, 37, 325. [Google Scholar] [CrossRef]
- Wu, G.F.; Wang, H.P.; Yang, Z.; He, D.J.; Chan, S. Electronic Health Records Sharing Based on Consortium Blockchain. J. Med. Syst. 2024, 48, 106. [Google Scholar] [CrossRef]
- Jia, X.; Xu, W.; Deng, P.; Gao, S.; Tang, L.; Wang, Y.; Zhang, M.; Bao, L.; Lin, D. Cross-organisational Data Sharing Framework Based on Blockchain-Probes. IET Netw. 2023, 12, 77–85. [Google Scholar] [CrossRef]
- Udokwu, C. Zero Knowledge Proof Solutions to Linkability Problems in Blockchain-Based Collaboration Systems. Mathematics 2025, 13, 2387. [Google Scholar] [CrossRef]
- Heo, J.W.; Ramachandran, G.S.; Dorri, A.; Jurdak, R. Blockchain Data Storage Optimisations: A Comprehensive Survey. ACM Comput. Surv. 2024, 56, 179. [Google Scholar] [CrossRef]
- Bulgakov, A.L.; Aleshina, A.V.; Smirnov, S.D.; Demidov, A.D.; Milyutin, M.A.; Xin, Y.L. Scalability and Security in Blockchain Networks: Evaluation of Sharding Algorithms and Prospects for Decentralized Data Storage. Mathematics 2024, 12, 3860. [Google Scholar] [CrossRef]
- Si, H.; Niu, B. Research on Blockchain Data Availability and Storage Scalability. Future Internet 2023, 15, 212. [Google Scholar] [CrossRef]
- Esmaili, M.; Christensen, K. Performance Modeling of Public Permissionless Blockchains: A Survey. ACM Comput. Surv. 2025, 57, 174. [Google Scholar] [CrossRef]
- Li, H.; Han, D.; Tang, M. A Privacy-Preserving Storage Scheme for Logistics Data With Assistance of Blockchain. IEEE Internet Things J. 2022, 9, 4704–4720. [Google Scholar] [CrossRef]
- Matani, A.; Sahafi, A.; Broumandnia, A. A Comprehensive Review on Blockchain Scalability. J. Electr. Comput. Eng. Innov. 2024, 12, 187–216. [Google Scholar]
- Matani, A.; Sahafi, A.; Broumandnia, A. Improving scalability in blockchain systems using multi-level sharding based on heterogeneity of network nodes. Computing 2025, 107, 63. [Google Scholar] [CrossRef]
- Reno, S.; Roy, K. Navigating the Blockchain Trilemma: A Review of Recent Advances and Emerging Solutions in Decentralization, Security, and Scalability Optimization. Comput. Mater. Contin. 2025, 84, 2061–2119. [Google Scholar] [CrossRef]
- Eren, H.; Karaduman, Ö.; Gençoğlu, M.T. Security Challenges and Performance Trade-Offs in On-Chain and Off-Chain Blockchain Storage: A Comprehensive Review. Appl. Sci. 2025, 15, 3225. [Google Scholar] [CrossRef]
- Hassanzadeh-Nazarabadi, Y.; Küpçü, A.; Özkasap, Ö. LightChain: Scalable DHT-Based Blockchain. IEEE Trans. Parallel Distrib. Syst. 2021, 32, 2582–2593. [Google Scholar] [CrossRef]
- Li, R.; Qin, Y.; Wang, C.; Li, M.; Chu, X. A Blockchain-Enabled Framework for Enhancing Scalability and Security in IIoT. IEEE Trans. Ind. Inform. 2023, 19, 7389–7400. [Google Scholar] [CrossRef]
- Yao, Y.; Liu, S.M.; Yeoh, P.L.; Vucetic, C.; Li, Y.H. LayerChain: A Hierarchical Edge-Cloud Blockchain for Large-Scale Low-Delay Industrial Internet of Things Applications. IEEE Trans. Ind. Inform. 2021, 17, 5077–5086. [Google Scholar]
- Eom, J.; Lee, D.H.; Lee, K. Patient-Controlled Attribute-Based Encryption for Secure Electronic Health Records System. J. Med. Syst. 2016, 40, 253. [Google Scholar] [CrossRef]
- Gao, X.; Zhang, W.; Zhao, B.; Zhang, J.; Wang, J.; Gao, Y. Product Authentication Technology Integrating Blockchain and Traceability Structure. Electronics 2022, 11, 3314. [Google Scholar] [CrossRef]
- Xu, H.; Liu, X.; Liang, Z.; Sun, H.; Xue, W.; Wang, J.; Li, K. A Transaction Cardinality Estimation Approach for QoS-Adjustable Intelligent Blockchain Systems. IEEE J. Sel. Areas Commun. 2022, 40, 3672–3684. [Google Scholar] [CrossRef]
- Wang, J.; Shi, Y.; Hu, D.; Li, K.; Liu, X. CoCFL: A Lightweight Blockchain-based Federated Learning Framework in IoT Context. In Proceedings of the 2024 IEEE 44th International Conference on Distributed Computing Systems (ICDCS), Jersey City, NJ, USA, 23–26 July 2024; pp. 1086–1096. [Google Scholar]
- Sangeeta, N.; Nam, S.Y. Blockchain and Interplanetary File System (IPFS)-Based Data Storage System for Vehicular Networks with Keyword Search Capability. Electronics 2023, 12, 1545. [Google Scholar] [CrossRef]
- Han, G.; Ma, Y.; Zhang, Z.L.; Wang, Y.X. A hybrid blockchain-based solution for secure sharing of electronic medical record data. Peerj Comput. Sci. 2025, 11, e2653. [Google Scholar] [CrossRef]
- Coluzzi, M.; Brocco, A.; Contu, P.; Leidi, T. A Survey and Comparison of Consistent Hashing Algorithms. In Proceedings of the 2023 IEEE International Symposium on Performance Analysis of Systems and Software, Raleigh, NC, USA, 23–25 April 2023; pp. 346–348. [Google Scholar]
- Karamimirazizi, F.; Jameii, S.M.; Rahmani, A.M. Data Replication Methods in Cloud, Fog, and Edge Computing: A Systematic Literature Review. Wirel. Pers. Commun. 2024, 135, 531–561. [Google Scholar] [CrossRef]
- Keizer, N.V.; Ascigil, O.; Król, M.; Kutscher, D.; Pavlou, G. A Survey on Content Retrieval on the Decentralised Web. ACM Comput. Surv. 2024, 56, 198. [Google Scholar] [CrossRef]
- Chen, L.; Zhang, X.; Sun, Z. Scalable Blockchain Storage Model Based on DHT and IPFS. KSII Trans. Internet Inf. Syst. 2022, 16, 2286–2304. [Google Scholar] [CrossRef]
- Sethi, S. Embedding a Microblog Context in Ephemeral Queries for Document Retrieval. J. Web Eng. 2023, 22, 679–700. [Google Scholar] [CrossRef]
- Zantalis, F.; Koulouras, G.; Karabetsos, S. Blockchain Technology: A Framework for Endless Applications. IEEE Consum. Electron. Mag. 2024, 13, 61–71. [Google Scholar] [CrossRef]
- Dorri, A.; Mishra, S.; Jurdak, R. Vericom: A Verification and Communication architecture for IoT-based blockchain. Ad Hoc Netw. 2022, 133, 102882. [Google Scholar] [CrossRef]
- ElAbid, I.; Boubouh, K.; Benkaouz, Y. PocketChain: Redefining blockchain integration with resource-constrained devices. Future Gener. Comput. Syst.-Int. J. Escience 2025, 176, 108122. [Google Scholar] [CrossRef]
- Hong, H.; Sun, Y.; Sun, Z. PB-UOKM: A policy-based updatable oblivious key management scheme for secure and practical data sharing in remote storage. J. Supercomput. 2025, 81, 821. [Google Scholar] [CrossRef]
- Vasilas, T.; Brad, R. A Decade in Software-Based Side and Covert Channel Attacks and Countermeasures: A Survey. IEEE Access 2025, 13, 56587–56606. [Google Scholar] [CrossRef]
- Doan, T.V.; Psaras, Y.; Ott, J.; Bajpai, V. Toward Decentralized Cloud Storage With IPFS: Opportunities, Challenges, and Future Considerations. IEEE Internet Comput. 2022, 26, 7–15. [Google Scholar] [CrossRef]
- Kim, D.; Park, S. Blockchain-Based Caching Architecture for DApp Data Security and Delivery. Sensors 2024, 24, 4559. [Google Scholar] [CrossRef] [PubMed]
- Tesoriero, R.; Gallud, J.A. Software Architecture and Framework to Develop NFC-Based Applications. Sensors 2018, 18, 2654. [Google Scholar] [CrossRef] [PubMed]
- Ma, W.; Wei, X.; Wang, L. A Security-Oriented Data-Sharing Scheme Based on Blockchain. Appl. Sci. 2024, 14, 6940. [Google Scholar] [CrossRef]
- Mallick, S.R.; Lenka, R.K.; Sobhanayak, S. Secure and scalable dual blockchain and IPFS driven IoT ecosystem for next gen healthcare systems. Sci. Rep. 2025, 15, 41064. [Google Scholar] [CrossRef] [PubMed]
- Nandanwar, H.; Katarya, R. Privacy-preserving data sharing in blockchain-enabled IoT healthcare management system. Comput. J. 2025, 68, 1657–1681. [Google Scholar] [CrossRef]
- Truong, V.T.; Le, L.B.; Niyato, D. Blockchain Meets Metaverse and Digital Asset Management: A Comprehensive Survey. IEEE Access 2023, 11, 26258–26288. [Google Scholar] [CrossRef]
- Alghamdi, T.A.; Javaid, N. A comprehensive survey on security, privacy and authentication in blockchain. Int. J. Web Grid Serv. 2023, 19, 259–286. [Google Scholar] [CrossRef]
- Mazor, O.; Rottenstreich, O. Understanding the Blockchain Interoperability Graph Based on Cryptocurrency Price Correlation. IEEE Trans. Netw. Serv. Manag. 2025, 22, 6245–6259. [Google Scholar] [CrossRef]
- Yu, J.; Zhang, X.; Wang, J.; Zhang, Y.; Shi, Y.; Su, L.; Zeng, L. Robust and Trustworthy Data Sharing Framework Leveraging On-Chain and Off-Chain Collaboration. Comput. Mater. Contin. 2024, 78, 2159–2179. [Google Scholar] [CrossRef]
- Alkhateeb, A.; Catal, C.; Kar, G.; Mishra, A. Hybrid Blockchain Platforms for the Internet of Things (IoT): A Systematic Literature Review. Sensors 2022, 22, 1304. [Google Scholar] [CrossRef]
- Wang, Y.; Wang, H.; Cao, Y. Comprehensive Review of Storage Optimization Techniques in Blockchain Systems. Appl. Sci. 2025, 15, 243. [Google Scholar] [CrossRef]
- Mukhandi, M.; Granjal, J.; Vilela, J.P. Blockchain Hybrid-Model Scheme for Scalable Cross-Domain Authorisation. Blockchain Res. Appl. 2025, 6, 100293. [Google Scholar] [CrossRef]
- Nair, R.; Zafrullah, S.N.; Vinayasree, P.; Singh, P.; Zahra, M.M.A.; Sharma, T.; Ahmadi, F. Blockchain-Based Decentralized Cloud Solutions for Data Transfer. Comput. Intell. Neurosci. 2022, 2022, 8209854. [Google Scholar] [CrossRef]
- Lei, L.; Song, L.; Wan, J. Improved Method of Blockchain Cross-Chain Consensus Algorithm Based on Weighted PBFT. Comput. Intell. Neurosci. 2022, 2022, 5169259. [Google Scholar] [CrossRef] [PubMed]
- Akter, S.; Reno, S. Achieving scalable and decentralized blockchain systems: A filecoin-based solution to the blockchain trilemma. J. King Saud Univ. Comput. Inf. Sci. 2025, 37, 159. [Google Scholar] [CrossRef]














| Technical Solution | Proposer | Main Content | Key Features |
|---|---|---|---|
| DHT + Blockchain (LightChain) | Hassanzadeh-Nazarabadi et al. [17] | Uses DHT to store blocks and transactions off-chain while recording hashes on-chain, reducing per-node ledger storage. | High scalability; node storage cost greatly lowered. |
| IoT Data Storage via Blockchain | Li et al. [18] | Stores IoT data across decentralized nodes with blockchain-based verification. | Secure, decentralized IoT data protection. |
| Cloud Storage + Blockchain (LayerChain) | Yao et al. [19] | Hierarchical storage of blockchain transaction data across cloud and chain. | Reduces on-chain load and improves propagation. |
| IPFS + Blockchain EMR System | Pan et al. [20] | Stores medical file contents in IPFS while on-chain stores hashes and access control. | Enhances privacy; lowers chain storage. |
| Off-chain Hash Chaining + Signatures | Gao et al. [21] | Keeps traceability data off-chain and writes only hash values on-chain. | Improves integrity; reduces on-chain footprint. |
| QoS-Adjustable Intelligent Blockchain | Xu et al. [22] | Dynamic orchestration of on-/off-chain resources for QoS adaptation. | QoS optimization. |
| CoCFL | Wang et al. [23] | Federated learning coordination over blockchain networks. | Collaborative learning scalability. |
| Field | Field Type | Description |
|---|---|---|
| fileHashes | mapping | Stores the mapping between the user address and the file hash value (CID), where the key is the user address and the value is the file hash value. |
| FileUploaded | event | File upload event, recording the user address, the file hash value (CID), and the upload timestamp. |
| uploadFile | function | The user calls this function to upload the file hash value (CID) to the blockchain. |
| getFileHash | function | Queries the file hash value (CID) uploaded by a specific user. |
| Cid | String | File Hash Value |
| Field | Field Type | Description |
|---|---|---|
| fileHashes | mapping | Stores the mapping between the user address and the file hash value (CID), where the key is the user address and the value is the file hash value. |
| FileVerified | event | File verification event, recording the user address, the file hash value (CID), the verification result, and the timestamp. |
| verifyFile | function | The user calls this function to verify whether the file hash value (CID) is consistent. |
| setFileHash | function | For testing purposes |
| timestamp | uint256 | Timestamp, used to record |
| isValid | Bool | Boolean constant, indicating whether the verification is valid |
| Field | Field Type | Description |
|---|---|---|
| Role | enum | Defines user roles, including NONE (no permission), USER (regular user), and ADMIN (administrator). |
| userRoles | mapping | Stores the mapping between user addresses and roles, where the key is the user address and the value is the user role. |
| fileAccessList | mapping | Stores the mapping between the file hash value (CID) and the access permission list, where the key is the file hash value and the value is the list of user addresses. |
| RoleAssigned | event | Role assignment event, recording the user address, the assigned role, and the timestamp. |
| FileAccessUpdated | event | File access permission update event, recording the file hash value (CID), the user list, and the timestamp. |
| assignRole | function | The administrator calls this function to assign a role to a user. |
| Item | Detailed Configuration |
|---|---|
| CPU | AMD Ryzen 5 3550H with Radeon Vega Mobile Gfx 2.10 GHz |
| Operating System | Ubuntu 20.04 |
| Blockchain Platform | FISCO BCOS 2.9.0 |
| Smart Contract Language | Solidity |
| IPFS Version | IPFS Desktop 0.23.0 |
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. |
© 2026 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.
Share and Cite
Zhu, T.; Huang, Y.; Liang, Z.; Qin, M.; Niu, R.; Ma, Y.; Feng, Q. Research on an On-Chain and Off-Chain Collaborative Storage Method Based on Blockchain and IPFS. Future Internet 2026, 18, 92. https://doi.org/10.3390/fi18020092
Zhu T, Huang Y, Liang Z, Qin M, Niu R, Ma Y, Feng Q. Research on an On-Chain and Off-Chain Collaborative Storage Method Based on Blockchain and IPFS. Future Internet. 2026; 18(2):92. https://doi.org/10.3390/fi18020092
Chicago/Turabian StyleZhu, Tianqi, Yuxiang Huang, Zhihong Liang, Mingming Qin, Ruicheng Niu, Yuanyuan Ma, and Qi Feng. 2026. "Research on an On-Chain and Off-Chain Collaborative Storage Method Based on Blockchain and IPFS" Future Internet 18, no. 2: 92. https://doi.org/10.3390/fi18020092
APA StyleZhu, T., Huang, Y., Liang, Z., Qin, M., Niu, R., Ma, Y., & Feng, Q. (2026). Research on an On-Chain and Off-Chain Collaborative Storage Method Based on Blockchain and IPFS. Future Internet, 18(2), 92. https://doi.org/10.3390/fi18020092

