Efficient Traceability Systems with Smart Contracts: Balancing On-Chain
and Off-Chain Data Storage for Enhanced Scalability and Privacy
Abstract
The growing importance of traceability in supply chains necessitates
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 traceability system,
highlighting its implementation using smart contracts on
Ethereum-compatible networks. The Ethereum Virtual Machine (EVM), with
its pioneering role in smart contracts and extensive ecosystem, provides
a robust environment for developing decentralised applications (dApps).
We discuss the advantages of using blockchain technology to notarise
traceability activities, ensuring immutability and transparency. Two
main scenarios are explored: one where hash keys (cryptographic digests)
are stored on-chain while detailed data remains off-chain, and another
where all traceability data is 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, albeit with a dependency 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 traceability
system. 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.