journal article·2024-11-28Open access

Efficient Traceability Systems with Smart Contracts: Balancing On-Chain and Off-Chain Data Storage for Enhanced Scalability and Privacy

Manuel José Fernández-Iglesias, Christian Delgado von Eitzen, Luis Anido-Rifón

Applied Sciences· Volume 14· Issue 23

Abstract

The growing importance of traceability in supply chains requires robust, transparent, and efficient systems to ensure the integrity and authenticity of product journeys. This paper presents a comprehensive characterisation and data model for a generic blockchain-based traceability system, highlighting its implementation using smart contracts on Ethereum-compatible networks, as the Ethereum Virtual Machine (EVM), with its pioneering implementation of smart contracts and its extensive ecosystem; it provides a robust environment for developing decentralised applications. We discuss the advantages of using blockchain technology to notarise traceability activities, ensuring immutability and transparency by exploring two main scenarios, namely one where hash keys (i.e, cryptographic digests) are stored on-chain while detailed data remain off-chain, and another where all traceability data are fully stored on-chain. Each approach is evaluated for its impact on scalability, privacy, storage efficiency, and operational costs. The hash key method offers significant advantages in reducing blockchain storage costs, enhancing privacy, and maintaining data integrity, but it depends on reliable off-chain storage. Conversely, the full on-chain approach guarantees data immutability but at a higher cost and lower scalability. By combining these strategies, a balanced solution can be achieved, leveraging the strengths of both methods to provide a reliable, efficient, and secure blockchain-based traceability system, which is illustrated with a practical implementation to support traceability in the timber sector in Galicia, Spain. This paper aims to provide valuable insights for researchers and practitioners looking to implement or enhance traceability systems using blockchain technology, demonstrating how smart contracts can be effectively utilised to meet the demanding requirements of modern supply chains.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Blockchain Technology Applications and Security

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

atlanTTic, University of Vigo, 36310 Vigo, Spain

Funding

Nunegal Consulting SL · European Union NextGenerationEU/PRTR

References (70)

Show source-provided references
1. A Correlation between Process Management and Procurement Efficiency in Manufacturing Sector10.24018/ejbmr.2021.6.2.776 ↗
2. Golan, E., Krissoff, B., Kuchler, F., Calvin, L., Nelson, K.E., and Price, G.K. (2004). Traceability in the US Food Supply: Economic Theory and Industry Studies, Agricultural Economic Reports 33939.
3. How to define traceability10.1016/j.tifs.2012.10.003 ↗
4. (2015). Quality Management Systems—Requirements (Standard No. ISO 9001:2015).
5. Bitcoin and beyond: A technical survey on decentralized digital currencies10.1109/COMST.2016.2535718 ↗
6. A survey on blockchain consensus mechanism: Research overview, current advances and future directions10.1108/IJICC-05-2022-0126 ↗
7. Supply chain transparency through blockchain-based traceability: An overview with demonstration10.1016/j.cie.2020.106895 ↗
8. Blockchain-Based Soybean Traceability in Agricultural Supply Chain10.1109/ACCESS.2019.2918000 ↗
9. A review on blockchain applications in the agri-food sector10.1002/jsfa.9912 ↗
10. Blockchain in food supply chains: A literature review and synthesis analysis of platforms, benefits and challenges10.1080/00207543.2021.1970849 ↗
11. Blockchain-enabled pharmaceutical cold chain: Applications, key challenges, and future trends10.1016/j.jclepro.2021.127021 ↗
12. Blockchain-based solution for Pharma Supply Chain Industry10.1016/j.cie.2023.108997 ↗
13. Havaeji, H., Dao, T.M., and Wong, T. (2023). Cost Prediction in Blockchain-Enabled Pharmaceutical Supply Chain under Uncertain Demand. Mathematics, 11.10.3390/math11224669 ↗
14. Li, S., Zhou, T., Yang, H., and Wang, P. (2023). Blockchain-Based Secure Storage and Access Control Scheme for Supply Chain Ecological Business Data: A Case Study of the Automotive Industry. Sensors, 23.10.3390/s23167036 ↗
15. Yasmin, S., and Devi, G. (2023, January 23–25). Blockchain and Cloud-based Technology in Automotive Supply Chain. Proceedings of the 2023 5th International Conference on Smart Systems and Inventive Technology (ICSSIT), Tirunelveli, India.
16. Wang, L., Sun, W., Zhao, J., Zhang, X., Lu, C., and Luo, H. (2024). A Non-Fungible Token and Blockchain-Based Cotton Lint Traceability Solution. Appl. Sci., 14.10.3390/app14041610 ↗
17. How blockchain adoption affects supply chain sustainability in the fashion industry: A systematic review and case studies10.1111/itor.13273 ↗
18. Figorilli, S., Antonucci, F., Costa, C., Pallottino, F., Raso, L., Castiglione, M., Pinci, E., Del Vecchio, D., Colle, G., and Proto, A.R. (2018). A Blockchain Implementation Prototype for the Electronic Open Source Traceability of Wood along the Whole Supply Chain. Sensors, 18.10.3390/s18093133 ↗
19. Blockchain-based Traceability for Teak Identity: A Transformational Approach10.13052/jmm1550-4646.2022 ↗
20. Chen, C.L., Guo, L.H., Zhou, M., Tsaur, W.J., Sun, H., Zhan, W., Deng, Y.Y., and Li, C.T. (2022). Blockchain-Based Anti-Counterfeiting Management System for Traceable Luxury Products. Sustainability, 14.10.3390/su141912814 ↗
21. Jevtic, M., Khan, S., Gomes, J., and Svetinovic, D. (2023, January 24–26). Blockchain-Based Countermeasures for Luxury Goods Counterfeiting: A Focused Survey. Proceedings of the 2023 Fifth International Conference on Blockchain Computing and Applications (BCCA), Kuwait, Kuwait.10.1109/BCCA58897.2023.10338871 ↗
22. Xiao, L., Sun, W., Chang, S., Lu, C., and Jiang, R. (2024). Research on the Construction of a Blockchain-Based Industrial Product Full Life Cycle Information Traceability System. Appl. Sci., 14.10.3390/app14114569 ↗
23. Blockchain-based credible manufacturing data sharing for a collaborative manufacturing supply chain10.1080/00207543.2023.2217292 ↗
24. Taherdoost, H. (2023). Smart Contracts in Blockchain Technology: A Critical Review. Information, 14.10.3390/info14020117 ↗
25. Antonopoulos, A.M., and Wood, G. (2019). The Ethereum Virtual Machine. Mastering Ethereum. Building Smart Contracts and DApps, O’Reilly Media. [1st ed.]. Chapter 13.
26. Dannen, C. (2017). Solidity Programming. Introducing Ethereum and Solidity: Foundations of Cryptocurrency and Blockchain Programming for Beginners, Apress. Chapter 4.10.1007/978-1-4842-2535-6 ↗
27. Tutorial on directed acyclic graphs10.1016/j.jclinepi.2021.08.001 ↗
28. Parallel algorithms for a depth first search and a breadth first search10.1080/00207168608803503 ↗
29. Fernandes, D., and Bernardino, J. (2018, January 26–28). Graph Databases Comparison: AllegroGraph, ArangoDB, InfiniteGraph, Neo4J, and OrientDB. Proceedings of the 7th International Conference on Data Science, Technology and Applications, Porto, Portugal.10.5220/0006910203730380 ↗
30. Role of Adjacency Matrix & Adjacency List in Graph Theory10.24297/ijct.v3i1c.2775 ↗
31. An overview on smart contracts: Challenges, advances and platforms10.1016/j.future.2019.12.019 ↗
32. Antonopoulos, A.M., and Wood, G. (2019). Smart Contracts and Solidity. Mastering Ethereum: Building Smart Contracts and DApps, O’Reilly Media. [1st ed.]. Chapter 7.
33. Laying the foundation for smart contract development: An integrated engineering process model10.1007/s10257-020-00465-5 ↗
34. Snyder, A. (October, January 29). Encapsulation and inheritance in object-oriented programming languages. Proceedings of the OOPSLA ’86: Conference Proceedings on Object-Oriented Programming Systems, Languages and Applications, New York, NY, USA. OOPSLA ’86.
35. Challenges and Common Solutions in Smart Contract Development10.1109/TSE.2021.3116808 ↗
36. Garcia-Alfaro, J., Herrera-Joancomartí, J., Livraga, G., and Rios, R. (2018). Self-reproducing Coins as Universal Turing Machine. International Workshop on Data Privacy Management, Springer International Publishing.
37. Smart Contract Security: A Software Lifecycle Perspective10.1109/ACCESS.2019.2946988 ↗
38. Matsuo, S., Gudgeon, L., Klages-Mundt, A., Perez Hernandez, D., Werner, S., Haines, T., Essex, A., Bracciali, A., and Sala, M. (2022). Not so Immutable: Upgradeability of Smart Contracts on Ethereum. International Conference on Financial Cryptography and Data Security, Springer International Publishing. Financial Cryptography and Data Security. FC 2022 International Workshops.10.1007/978-3-031-32415-4 ↗
39. Is a ‘smart contract’ really a smart idea? Insights from a legal perspective10.1016/j.clsr.2017.05.007 ↗
40. Blockchain-based event processing in supply chains—A case study at IKEA10.1016/j.rcim.2020.101971 ↗
41. On-Chain and Off-Chain Data Management for Blockchain-Internet of Things: A Multi-Agent Deep Reinforcement Learning Approach10.1007/s10723-023-09739-x ↗
42. Bhateja, V., Yang, X.S., Ferreira, M.C., Sengar, S.S., and Travieso-González, C.M. (2023). Performance Comparison of On-Chain and Off-Chain Data Storage Model Using Blockchain Technology. International Conference on Frontiers of Intelligent Computing: Theory and Applications, Springer Nature.
43. Bhaskar, R., Laxman, S., Smith, A., and Thakurta, A. (2010, January 25–28). Discovering frequent patterns in sensitive data. Proceedings of the 16th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, New York, NY, USA.10.1145/1835804.1835869 ↗
44. Finding “interesting” trends in social networks using frequent pattern mining and self organizing maps10.1016/j.knosys.2011.07.003 ↗
45. Zheng, Q., Li, Y., Chen, P., and Dong, X. (2018, January 3–6). An Innovative IPFS-Based Storage Model for Blockchain. Proceedings of the 2018 IEEE/WIC/ACM International Conference on Web Intelligence (WI), Santiago, Chile.10.1109/WI.2018.000-8 ↗
46. On-chain vs. off-chain storage for supply- and blockchain integration
47. Raikwar, M., Gligoroski, D., and Velinov, G. (July, January 30). Trends in Development of Databases and Blockchain. Proceedings of the 2020 Seventh International Conference on Software Defined Systems (SDS), Paris, France.10.1109/SDS49854.2020.9143893 ↗
48. Delgado-von Eitzen, C., Anido-Rifón, L., and Fernández-Iglesias, M.J. (2021, January 12–15). Blockchain for the Scalable Issuance and Verification of Private Academic Information. Proceedings of the 2021 International Conference on Advanced Learning Technologies (ICALT), Tartu, Estonia.10.1109/ICALT52272.2021.00138 ↗
49. Karafiloski, E., and Mishev, A. (2017, January 6–8). Blockchain solutions for big data challenges: A literature review. Proceedings of the IEEE EUROCON 2017—17th International Conference on Smart Technologies, Ohrid, Macedonia.10.1109/EUROCON.2017.8011213 ↗
50. OpenZeppelin (2024, November 25). Access Control. OpenZeppeling Library Contracts. Available online: https://docs.openzeppelin.com/contracts/access-control.
51. CO2-taxing, timber rotations, and market implications10.1080/10643389709388516 ↗
52. Designing the Architecture of a Blockchain Platform: The Case of Alastria, a National Public Permissioned Blockchain
53. IPFS and Friends: A Qualitative Comparison of Next Generation Peer-to-Peer Data Networks10.1109/COMST.2022.3143147 ↗
54. A Formulation of the Trilemma in Proof of Work Blockchain10.1109/ACCESS.2024.3410025 ↗
55. Yang, D., Long, C., Xu, H., and Peng, S. (2020, January 26). A Review on Scalability of Blockchain. Proceedings of the 2020 2nd International Conference on Blockchain Technology, New York, NY, USA. ICBCT ’20.10.1145/3390566.3391665 ↗
56. Engineering supply chains to match customer requirements10.1108/09576050010355635 ↗
57. A Comprehensive Survey on Blockchain-Based Decentralized Storage Networks10.1109/ACCESS.2023.3240237 ↗
58. Krishnan, S., Balas, V.E., Julie, E.G., Robinson, Y.H., Balaji, S., and Kumar, R. (2020). Chapter 15—Scalability in Blockchain: Challenges and Solutions. Handbook of Research on Blockchain Technology, Academic Press.
59. Investigating the link between transaction and computational costs in a blockchain environment10.1080/00207543.2020.1754487 ↗
60. Regulatory issues in blockchain technology10.1108/JFRC-08-2016-0068 ↗
61. Ko, T., Lee, J., and Ryu, D. (2018). Blockchain Technology and Manufacturing Industry: Real-Time Transparency and Cost Savings. Sustainability, 10.10.3390/su10114274 ↗
62. A survey on blockchain technology and its security10.1016/j.bcra.2022.100067 ↗
63. Li, B., Qi, G., and Lu, W. (2022, January 19–21). Recent Advances in Privacy Protection Technologies in Blockchain. Proceedings of the 2022 13th International Conference on Information and Communication Technology Convergence (ICTC), Jeju Island, Republic of Korea.10.1109/ICTC55196.2022.9952451 ↗
64. A Privacy-Preserving Zero-Knowledge Proof for Blockchain10.1109/ACCESS.2023.3302691 ↗
65. A Comprehensive Review of Denial of Service Attacks in Blockchain Ecosystem and Open Challenges10.1109/ACCESS.2022.3205019 ↗
66. An Analysis of the FDA Food Safety Modernization Act: Protection for Consumers and Boon for Business
67. Arienzo, A., Coff, C., and Barling, D. (2008). The European Union and the regulation of food traceability: From risk management to informed choice?. Ethical Traceability and Communicating Food, Springer.10.1007/978-1-4020-8524-6_2 ↗
68. Delgado-von Eitzen, C., Anido-Rifón, L., and Fernández-Iglesias, M.J. (2021). Application of Blockchain in Education: GDPR-Compliant and Scalable Certification and Verification of Academic Information. Appl. Sci., 11.10.3390/app11104537 ↗
69. Lamken, D., Wagner, T., Hoiss, T., Seidenfad, K., Hermann, A., Kus, M., and Lechner, U. (2021, January 3–6). Design patterns and framework for blockchain integration in supply chains. Proceedings of the 2021 IEEE International Conference on Blockchain and Cryptocurrency (ICBC), Sydney, Australia.10.1109/ICBC51069.2021.9461062 ↗
70. Blockchain verification and validation: Techniques, challenges, and research directions10.1016/j.cosrev.2022.100492 ↗