Next Article in Journal
Game Theory-Based Incentive Design for Mitigating Malicious Behavior in Blockchain Networks
Previous Article in Journal
Dynamic and Distributed Intelligence over Smart Devices, Internet of Things Edges, and Cloud Computing for Human Activity Recognition Using Wearable Sensors
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Experiences Using Ethereum and Quorum Blockchain Smart Contracts in Dairy Production

by
Filisia Melissari
1,
Andreas Papadakis
1,*,
Dimitris Chatzitheodorou
2,
Duc Tran
3,
Joachim Schouteten
3,
Georgia Athanasiou
1 and
Theodore Zahariadis
1
1
Synelixis S.A., GR34100 Chalkida, Greece
2
Stymfalia S.A., GR20016 Corinthia, Greece
3
Department of Agricultural Economics, Ghent University, 9000 Ghent, Belgium
*
Author to whom correspondence should be addressed.
J. Sens. Actuator Netw. 2024, 13(1), 6; https://doi.org/10.3390/jsan13010006
Submission received: 8 November 2023 / Revised: 1 January 2024 / Accepted: 8 January 2024 / Published: 12 January 2024

Abstract

:
feta cheese is a Greek protected designation of origin (PDO) product that is produced in three main phases: milk collection, cheese preparation and maturation, and product packaging. Each phase must be aligned with quantitative rules, stemming from the legislation framework and best practices. The production complexity, the increased production cost, centralised and monolithic traceability systems, and the lack of a systematic monitoring framework have made dairy products a commodity with increased frequency of food fraud. Given the context of the dairy section in Greece, this study aims to examine (a) whether it is possible to model the end-to-end process of PDO feta cheese considering production rules to develop a trustworthy blockchain-based traceability system (b) how to associate the (‘easy-to-retrieve’, operational) traceability data with the (difficult-to-assess) product characteristics meaningful to the consumer, (c) how to design a technical solution ensuring that information is accessible by the stakeholders and the consumer, while minimising blockchain-related delay, and (d) how to design a graphical user interface and offer tools to consumers so that traceability information is communicated effectively and they can verify it through access to the blockchain. In terms of methods, we analyse and model the process steps, identify measurable, operational parameters and translate the legislative framework into rules. These rules are designed and codified as blockchain smart contracts that ensure the food authenticity and compliance with legislation. The blockchain infrastructure consists of the private Quorum blockchain that is anchored to the public infrastructure of Ethereum. Mechanisms to address scalability in terms of dynamic data volumes, effective data coding, and data verification at the edge as well as relevant limitations are discussed. Consumers are informed about traceability information by using QR codes on food packaging and can verify the data using the blockchain tools and services.

1. Introduction

Consumers are increasingly interested in aspects of food production such as use of high-quality, local raw materials, adherence to traditional processing methods, and the preservation of nutritional values [1,2]. However, the complexity of food supply chains and the often inadequate controls by local authorities pose challenges to ensuring food authenticity and the integrity of food systems [3]. As proven in the literature, the implementation of robust traceability systems can help effectively combat food fraud and provide sufficient communication to consumers about food safety and quality [1,4].
Among food categories, dairy products and especially cheese are one of the main hotspots for food safety and food fraud [5]. It is often challenging to develop a thorough and reliable traceability system for cheese production. Cheese is often produced from milk of different sources, which is later mixed and processed through complex procedures. For instance, feta cheese in Greece is produced under the protected designation of origin (PDO) certification, which requires that it must be made from at least 70% sheep milk and up to 30% of goat milk of animals grazed in Greek territories [6]. The raw materials for feta cheese production is often a mixture of milk from different small-scale farms, as the dairy sector in Greece is highly fragmented, with 80% of raw milk coming from family-owned farmers with fewer than 100 animals [7]. Even though the current legal framework stipulates specific requirements for feta cheese processing procedures (National Food Law 5039/2023), Pidiaki et al. (2016) reported that more than 40% of examined feta cheese samples in Greece illegally contained cow milk [8]. Such counterfeits of feta cheese can hardly be detected by consumers via direct consumption. In this regard, consumers can only rely on the product information to ascertain the authenticity of feta cheese at the point of sale. Given recent food fraud incidents, consumers’ trust in food systems can be degraded, which can subsequently lead to a decrease in consumption for food products concerned [9]. In addition, the recall cost for dairy products corresponds directly to the recall time, as shown by Velthuis et al. [10]; thus, timely and accurate response to food safety incidents by food recall is vital for food business operators, which can be achieved by having an effective traceability system in place.
The key areas that motivate this research include the following considerations.
  • Due to increased cost, the centralised and monolithic nature of the traceability systems, and the lack of a systematic and automated framework of traceability data management, dairy products have become a food commodity with increased fraud.
  • There is limited connection between measurement of operational parameters (such as pH, temperature, duration of maturation) and the qualitative characteristics of the dairy product. In addition, the traceability information offered to the consumer is limited, so the (mandatory) alignment with the legislation framework and the (optional) alignment with best practices are not necessarily recognised by the consumers.
  • While blockchain appears to be a promising technology, its application in the food chain appears ‘coarse-grained’, not necessarily considering individual steps or parameters. The codification of the legislative framework into rules and subsequently smart contracts is challenging.
This study introduces a traceability platform built upon blockchain technology to provide a trustworthy system to record traceability data among food chain actors and communicate such data to consumers transparently. Blockchain offers (1) immutability, as data registration is permanent and cannot be tampered with, (2) decentralisation of the platform, and (3) a controlled level of transparency among the stakeholders and the consumers [11,12]. However, two of the critiques against blockchain technology are the rather slowness in processing (data) transactions and the costs of the transactions [13]. In this study, we detail well-selected blockchain consensus algorithms that boost performance and speed and limit the number of transactions that involve costs.
Given its specific production requirements and challenges, feta cheese was chosen as the product of interest for developing this advanced traceability platform. The boundaries of the platform include the collection of the raw materials (milk), cheese production processes, and final product packaging. Quantitative data (related to pH and temperature values, time duration, test results) are selected according to their relationship with cheese characteristics and quality (origin, taste, nutritional value, and proportion between sheep and goat milk types). The relevant processes are monitored, without inflicting disruptive changes, and information is registered in the blockchain.
The objectives of the study are threefold. First, this study aims to define the boundaries of the production chain considering three main stages: (1) collection of raw materials, (2) processing procedures, and (3) final product packaging. Second, a platform is designed to register traceability information in the blockchain ledger and then extract such information to communicate with consumers in a transparent way. Lastly, the evaluation of the mechanism and quantification of the overheads on behalf of the stakeholders is performed.
The study captures the intricacies of a complex production process involving multiple stakeholders and diverse sources of raw materials, specifically milk, within the context of cheese production. These raw materials undergo a series of critical stages, including mixing and maturation. The study places a strong emphasis on acquiring highly detailed information regarding the roles of various stakeholders and their complementary responsibilities, all of which are integrated into the blockchain system. This integration ensures the integrity of the data as they enter the blockchain infrastructure, ultimately enabling consumers to verify traceability information through an interactive online platform.
Moreover, the identification of pertinent production parameters was achieved through a co-creation process. In this process, key stakeholders from the dairy supply chain engaged in formal focus group discussions with technology developers. This collaborative effort ensured that the selected parameters accurately reflect the needs and priorities of the stakeholders involved. Additionally, a preliminary consumer study was conducted to validate the relevance and meaningfulness of the information provided to consumers through the proposed traceability platform. This multifaceted approach underscores the robustness and practicality of the traceability system.
From a technical standpoint, the study introduces an innovative approach to address one of the inherent weaknesses of blockchain: the challenge in handling large and/or dynamically changing volumes of data efficiently. To overcome this limitation, we have applied a dual-chain system. By design, the data-intensive transactions are performed in the private chain, using the public infrastructure for registering the Merkle roots (which are of small data volumes) to allow public access (for data verification, on behalf of the consumer), allowing the private chain to be anchored to the public one. This anchoring strategy is designed to optimise the utilisation of blockchain resources, enhance transaction speed and limit the number of transactions that involve costs. The usage of the private blockchain network (Quorum) does not involve (monetary) costs (except for hosting and managing the network), as the transactions employ gas (related to the computational load).
The current work aligns with and contributes to the establishment of the architectural approach and mechanisms of sensor and actuator networks. Specifically, based on physical activity monitoring, a series of actuations are triggered involving the activation of the Blockchain smart contracts that immutably register the information. These smart contract actuations are discrete, well-defined events propagated in the Blockchain networks, informing traceability applications.
The immutable registration of sensor-measured values using the Blockchain technology allows for data integrity contributing to the security aspects at the upper layers of sensor networks. The current research work also mitigates the challenge of managing the vast set of sensor network measurements in a twofold manner: (a) the selection of concrete process steps and associated parameters composes a filtering mechanism applied to the full set of measured values and (b) the employment of anchored private and public blockchains allows data registration with minimal impact on the delays and costs.
The rest of this article is structured as follows. Section 2 describes a literature review on current approaches in distributed ledgers and the application of blockchain-based traceability technology in the food industry. Section 3 describes the methodology followed, the key decisions taken and the design of the system. Section 4 includes the results and our discussion. The paper closes with conclusions and future work in Section 5.

2. Literature Review

2.1. Blockchain

Βlockchain, a distributed digital ledger (DLT), can store records of data/transactions that are confirmed by all participating nodes, leading to a highly tamper-resistant system. Depending on the access, blockchain networks can be (a) public/permissionless, where users can read/write data with examples including Bitcoin and Ethereum, (b) private (permissioned), where access is granted by a central entity to specific entities, and (c) hybrid (or consortium), which are controlled by a group of companies/participants that authorise the participation in the network along with the rights to access/modify the stored data [14]. The benefit of the public chains is the open access, while the private ones can control access due to their more centralised nature, and the consensus algorithms of private chains employed may offer better performance [15].
Ethereum, a pioneering blockchain platform, allows automated and computerised transactions, commonly referred to as ‘smart contracts’ [16]. Smart contracts are designed to execute specific actions automatically when predetermined conditions are met. Their computerised nature ensures direct execution without any delays or the need for external entities to take action [17]. Once registered in the blockchain system, smart contracts become immutable. This immutability instils confidence that the contract will be enforced as initially designed. Smart contracts can interact not only with human users but also with other smart contracts within the same blockchain ecosystem, making them valuable for automating various business processes. Blockchain systems can incorporate regulatory requirements by encoding them as computerised rules. These rules can be integrated into the blockchain and modified as needed [18]. This flexibility allows for compliance with changing regulations.
However, it is worth noting that smart contracts have limitations. They have a restriction on the volume of data they can handle efficiently. Additionally, smart contracts cannot independently verify the trustworthiness of the triggering event. This means that they rely on external sources to provide accurate information for execution [19]. As the concept of smart contracts becomes available on multiple blockchain platforms, the choice of platform typically depends on the specific requirements of the use case at hand.
The security and performance of a blockchain network are ensured by the consensus algorithm, which verifies the content of new blocks. Proof of work (PoW), proof of stake (PoS), and proof of authority (PoA) are some of the better-known categories of consensus algorithms. Vistro et al. (2021) investigates the usage of consensus protocols in different application domains [20]. We briefly refer to a few of them.
  • Proof of Work (PoW) is the first consensus algorithm. In PoW, participating nodes, often referred to as ‘miners’, are tasked with resolving intricate mathematical problems (mining). These nodes engage in competitive mining, with the objective of introducing a computational and energy cost to create a new candidate block. Successful miners are rewarded with cryptocurrency upon the successful assembly of a block. Nevertheless, it is noteworthy that PoW exacts a substantial toll in terms of time and energy resources.
  • Proof of Stake (PoS): PoS addresses the inefficiencies inherent in PoW, including delays and the high consumption of energy resources. PoS introduces the concept of validators who “stake” cryptocurrency as collateral to validate new blocks. Nodes that stake larger quantities of cryptocurrency enjoy a higher likelihood of being selected to propose a new block, subsequently validating transactions and receiving a cryptocurrency reward. PoS exhibits greater energy efficiency and imposes less computational overhead in comparison to PoW. However, it is worth noting that PoS may potentially favour users with greater financial stakes.
  • Proof of Authority (PoA): In PoA, validators are approved by a central authority following a rigorous screening process. These validators are subsequently randomly chosen to generate the next block that is added to the blockchain. PoA is typically deemed suitable for permissioned blockchain networks characterised by demanding throughput and low latency requirements. However, it relies upon the presence of a central authority, and the identities of validators are publicly disclosed.
  • Raft is a distributed consensus algorithm by dividing participating nodes in three categories: leader, followers, and candidate (during leader election phase). The leader node manages the block addition and placement in the whole network [21].
  • The Istanbul Byzantine Fault Tolerance (IBFT) consensus mechanism is a flavour of PoA algorithms involving a block-proposing node and a group of validating nodes, which approve, by two thirds, the addition of the block. The group consensus model employed is a variant of practical Byzantine fault tolerance [22].
While public blockchain networks are using PoW or PoS consensus algorithms, private networks are oriented towards PoA-type algorithms. PoA algorithms reduce time for block creation and insertion, offer operational effectiveness and flexibility, and can ensure security with the employment of trusted nodes and supermajority validation requirements.

2.2. Blockchain in Agri-Food Supply Chains

The involvement of multiple actors in the food industry and the prevalence of centralised systems, which are owned and controlled by single stakeholders, can raise concerns regarding data reliability. When traceability data are stored in centralised systems managed by single entities, they become more susceptible to unintentional errors, deliberate tampering, or potential attacks [23].
Efforts have been made to replace these centralised systems with distributed platforms such as blockchain infrastructure, aimed at fostering trust among supply chain actors [24,25]. The shift from centralised systems to decentralised systems involves adopting a collaborative and mutually trusted management model for both on-chain and off-chain data. In this regard, various distributed architectures for data management have been proposed, including systems such as the Electronic Product Code Information Service (EPCIS)-based distributed traceability system, which facilitates the sharing of information about physical and digital objects [26]. Among blockchain technologies, Ethereum has emerged as the most widely used, closely followed by Hyperledger Fabric [27].
Casella et al. (2023) and Kamilaris et al. (2019) corroborated that the utilisation of blockchain technology is on the rise within the domains of agri-food, logistics, and supply chain management [28,29]. In the case of agri-food supply chains, the input data for the blockchain systems can be intricate due to the diverse sources of raw materials and the complex mixing and transformation process to produce the final products [30]. For instance, Lucena et al. (2018) attempted to develop a quality assurance tracking system using blockchain technology that captures the physical, chemical, and biological conditions during the transformation of grains [31]. Most of the early blockchain projects in agri-food supply chains targeted non-processed food products such as beef or fruits, which does not require complex data input for tracing the product flow from raw materials [32]. To the best of the authors’ knowledge, studies regarding blockchain-based traceability systems for processed dairy products such as cheese remain scant in the literature.
Blockchain-based traceability systems face some critical challenges, such as the storage pressure that hampers the system performance. In this regard, combining InterPlanetary File Storage System (IPFS) and blockchain [33,34] or storing traceability data off-chains and the Merkle keys on chains [34] appear to be promising solutions.
Even though blockchain provides immutability of the records of data, it does not ensure the verifications of actors’ reliability or accountability of the transaction process. Shahid et al. (2020) proposed a reputation system that captures the reviews of supply chain actors in IPFS while their hashes are stored in blockchain. By doing this, the immutability and integrity of the reviews made by multiple actors can be ensured [29]. Li et al. (2022) took an extra measure in verifying the input data by using Electronic Product Code Information Service (EPCIS) to authenticate and authorise the Internet of Things (IoT) devices used for data collection [34]. As previously discussed, the advancement of blockchain applications within agri-food supply chains has garnered growing interest from both the academic and industry communities. Nonetheless, given that blockchain technology is still in its early stages of development, there is a pressing need for more practical projects to thoroughly explore and capitalise on its potential.
The adoption of blockchain-based traceability systems in the dairy sector is still in its early stages, with a significant portion of the existing literature being theoretical rather than operational. A study by Casino et al. (2021) introduced one of the first blockchain-based traceability systems for the milk value chain, utilising a private Ethereum-based blockchain and smart contracts based on HACCP procedures [35]. However, the absence of a public blockchain raises concerns about system integrity. Other initiatives for milk supply chains, such as FoodSQRBlock [36] and SmartDairyTracer [37], integrate private blockchain with IoT and AI, but do not provide consumer access to traceability information. On the other hand, the Milk Delivery Blockchain Manager [38] in Kenya aims to enhance transparency and fairness in payments for rural dairy farmers. A noteworthy development is the use of the public Algorand blockchain in the Fontina PDO cheese supply chain, which is considered a less energy-demanding public blockchain system [39]. In Switzerland, the NUTRIA system offers decentralised dairy product supply chain tracing combining both Ethereum and private blockchains [40]. While progress is evident, most of the recent projects focused on milk supply chains, which are less complex than processed products such as (feta) cheese. Also, it is noteworthy that current studies often did not clearly explain the approach to address the inherent limitation of blockchain systems related to scalability and energy consumption.
This study introduces an innovative approach by implementing blockchain technology in feta cheese, which has a particularly complex production process. By describing the approach of this proposed traceability platform, this study offers deeper insights into the feasibility and advantages of adopting blockchain within the practical and real-world context of agri-food supply chains.

3. Methodology

The methodology, depicted in Figure 1, includes the identification of the key product features, their association with measurable operational parameters, and verifiable rules. The key traits of the feta cheese product, as selected by the consumers according to a consumer study conducted in 2022, include the food integrity as reflected through the compliance with the legislative framework, the compliance with the traditional methods, the quality, and the origin of the raw material. These traits are associated with quantifiable, operational parameters, which can be retrieved from the underlying production processes. The acceptable or recommended range of values for the identified parameters is quantified as ‘rules’ based on the legislative framework and the best practices followed by the stakeholders (mainly the dairy). The operational parameters are retrieved automatically, through sensors, or manually with human intervention/registration of the values, and their values are immutably registered in the blockchain.
In the last phase, consumers retrieve the trustworthy traceability information relevant to the product they intend to purchase (or already purchased) and verify the integrity of the data and the compliance of the process with the established rules.

3.1. Current Value Chain

The production process of feta cheese has been captured in a life cycle assessment (LCA) study [41], involving a network of supply chain stakeholders.

3.1.1. Actors and Legislation Involved

The stakeholders involved include the goat and sheep breeders, the milk collector, the dairy processor, and the laboratory employee. The breeders are responsible for the milk-producing animals and supplying the milk needed for cheese production. The milk collector receives and inspects the milk collected from the breeder premises. The milk collector is also responsible for the safe transportation of the milk to the dairy. The dairy processor serves as a central stakeholder in the chain, assuming responsibility for the actual cheese production process. This role involves the transformation of milk into feta cheese. The laboratory staff conduct periodic microbiological tests on the milk. These tests help in determining the recent presence or absence of antibiotics in the milk-producing animals, ensuring the quality and safety of the milk used for cheese production. Consumers represent the end-point of the chain, and can make informed purchase decisions on the feta cheese if trustworthy traceability information is accessible to them.
The national legislation, as issued in the official Greek Government Gazette, provides guidelines governing the usage of milk without antibiotics and containing a minimum fat content of 6%. Additionally, it stipulates that only sheep and goat milk from designated Greek regions and at prescribed percentages, i.e., a minimum of 70% sheep milk, can be used. Furthermore, it mandates a minimum maturation duration of at least 2 months.
Dairies also adhere to their own set of best practices, in addition to legislation requirements, developed empirically to ensure the quality of raw materials, the successful completion of each step in the production process and of course the characteristic taste of the product. For instance, the dairy processor can extend the maturation period, which may have a positive impact on the taste of the cheese. These practices are quantified through the application of specific thresholds for the procedural steps and rigorous organoleptic inspections.

3.1.2. Workflows in the Examined Dairy Supply Chain

The workflow is structured into the phases of milk collection, production initiation, maturation, and packaging. Each phase is monitored and managed using qualitative and quantitative parameters that can be validated through rules. Such rules are based on the national and European legislation framework and the best practices of the dairy.
Phase 1—Milk Collection: At regular intervals, usually once a day, the milk collector retrieves the milk from the cooperating breeders. The breeders are in the vicinity of the dairy processor’s facility and have a long-standing relationship with the dairy processor. The milk collection vehicles visit the breeders’ farms and collect the milk. The type of milk (sheep’s and goat’s milk), the quantity (weight), the pH and the temperature of the collected milk (considered indicators of its quality) are measured and registered by the collector in the presence of each breeder. In parallel, samples of the milk are retrieved and measured by an external laboratory in terms of the fat content (which should be at least 6% w/w), the protein, the lactose, the somatic cells, and the presence (or absence) of anti-microbiotics, as stated in EC Regulation 853/2004.
After weighing, the milk is poured into the collection vehicle and mixed with the previously collected milk. Each vehicle has compartments associated with milk types (goat, sheep). Sheep’s milk is considered of high quality if the protein content exceeds 5.5% (per weight, w/w). Upon completion of the milk collection, the milk is temporarily stored in the dairy in cooling tanks at a temperature of below 4 °C.
Phase 2—Production preparation and initiation: The production process initiates with milk purification through a series of treatments, including filtration, centrifugal separation, and pasteurisation (for microbial stabilisation), performed in pasteurisation chambers. After purification, the milk is ready for the production phase. The necessary components are added, and the milk begins to form coagulum (curd). When coagulation is completed, the coagulum is divided into cubes and placed in plastic moulds a few minutes later. Over the next twenty-four hours, the cheese is overturned in three stages to reduce the moisture. Then, the cheese is removed from the plastic moulds, its surface is salted, and it is placed in plastic barrels. One or two days later, the cheese is removed from the original storage media (plastic barrels) and stored in wooden barrels and (metal) sheet metal containers. The tin containers are filled with brine.
Phase 3—Maturation: The first phase of ripening (first maturation) usually lasts about two weeks and is completed when the pH drops to 4.45–4.50. During this phase, the temperature remains at 17 °C. When this phase is completed, the containers and barrels are stored in refrigerators for the second maturation. The total duration of maturation should be at least two months, according to legislation. Visual and organoleptic checks (performed by the processor) confirm successful completion.
Phase 4—Packaging: When the maturation is complete, the cheese is packed in plastic containers and vacuum packs. During packaging, a subset of the information (on ingredients and nutritional value) is printed on the packaging. More detailed traceability information, which is not typically available to the consumer, is linked to a QR code printed on the packaging. A different QR code refers to each specific production lot. The consumer has access to this traceability information, which has been immutably registered in the blockchain, and a verification of a set of rules for the specific package (lot) at hand.
Table 1 summarises the phases, the actors involved, the product traits as associated with the quantitative parameters, and the rules to be applied.
Traceability is supported in the current chain as a legislative obligation with a strictly internal (inbound) focus, i.e., information is curated, managed, and accessed by the dairy to verify and control production and lots. The information provided to the consumer contains the necessary data according to the legal requirements mainly related to ingredients and nutritional value.

3.2. Architecture

The three-tier ICT platform interconnects the processes monitored with the blockchain infrastructure and offers the traceability services to the consumer. Measurements are retrieved automatically through networked sensors or manually when the measuring equipment is not networked.
The blockchain infrastructure must be able to:
(a)
Register data, the volume of which can be dynamic. This volume affects the number of blockchain transactions, the delays, and the costs. An example of the dynamic volume of the data is related to the number of breeders who contribute milk to the productions, which may vary daily.
(b)
Verify the integrity of the information and the compliance with the rules based on on-chain data.
(c)
Allow consumers to verify the information presented after QR scanning using independent mechanisms and infrastructures such as the public Ethereum network.
A public blockchain network allows public access to the registered information, while private ones have policies allowing access to permissioned members. Private networks allow faster transactions and lower or no costs. Due to the relatively low transaction rate of blockchain systems (especially public ones), the volume of persisted data should be as limited as possible. To combine the benefits of both approaches, we have adopted an anchoring approach. The full set of (necessary and effectively coded) information is registered in the private chain, while its secure hash is registered in the public chain, which in turn ensures the integrity and immutability of the full data.
Ethereum was chosen as the public ledger, due to its rich ecosystem and its Turing-complete language (Solidity) executed on Ethereum virtual machines (EVMs) that allows the development of decentralised application (DAPP) language. Ethereum 2.0 has recently adopted proof of stake as the consensus algorithm (substituting PoW), which reduces energy consumption and accelerates the transaction rate. The transaction rate of the Ethereum network is still relatively low (in the range of 12–13 transactions per second according to etherscan.io in September 2023). This delay has limited impact on the feta cheese production process, which lasts for two months.
Quorum has been selected as the private ledger to ensure interoperability and compatibility with the Ethereum ecosystem. Quorum is an Ethereum fork offering permissioned/private access to the blockchain data/contracts. In addition, it employs a consensus algorithm that achieves adequate throughput, being in parallel energy–efficient [42]. A Quorum node can participate in the network only through authorisation by its designated authority. Scalability and performance are boosted in Quorum through the usage of an IBFT consensus algorithm that has been inspired by PoA [43]. The approach is depicted in Figure 2.
On the left, the processes are monitored, and the values of the selected operational parameters are extracted and stored in the ICT platform. Then, they are effectively coded and immutably registered in the private blockchain (Quorum), while in parallel the rules are verified. These activities are executed as smart contract transactions (designed and implemented in Solidity). Both the ICT system and the private blockchain are accommodated in the infrastructure of the stakeholders (middle of Figure 2) and the Quorum network consists of 4 collaborating nodes.
On the right, the architecture is completed with the public blockchain (Ethereum), which operates independently of the stakeholders, hosted in thousands of nodes. The private chain is anchored to the public through the registration of the hash of the data registered in the private chain. The transactions are registered in public Testnets, which operate on separate ledgers from the main networks, simulating the behaviour of the main networks without cost. After scanning the QR code of the package at hand, consumers (upper) can be directed to a service offered by the ICT system that presents the registered information as retrieved by the private blockchain. Consumers are offered the capability of verifying the integrity of the data presented and the compliance with the rules by directly interacting with the public blockchain.

3.3. Smart Contracts

Smart contracts have been used for two purposes: (a) to register the information on the private and public blockchains, and (b) to verify the conformance of the measured values (according to the rules described in Table 2). The former provide immutability and verify the integrity of the data, while the latter verify alignment with the rules employing the on-chain data.
Regarding data registration (a), the ICT platform registers the data in the private ledger and builds the respective Merkle tree calculating the hash of the root as a representation of registered data from the preparation phase. Then, it registers the hash root and the production lot on the public ledger. After successful registration of the data, the corresponding URL becomes available, and the hash (Merkle root) can be accessible through the Ethereum block explorer (such as Goerli and Sepolia testnets). On the other hand, the information itself is stored in the private chain (Quorum) and relevant access can be controlled and protected.
Regarding compliance with the rules, Table 1 is expanded with the quantified rules, as in Table 2. Each smart contract corresponds to a specific phase.
Figure 3 depicts the code of the smart contract, responsible registering in the Ethereum the hash of the information relevant to the initiation of the production (already stored in the private chain). The smart contract is deployed in Ethereum, indicating the Solidity version (v0.8) and the license selected (GNU AGPLv3). The smart contract, when executed, automatically triggers the event ProductionStart event to the chain, notifying other smart contracts listening to this event.

4. Results

The consumers (and the stakeholders) are offered the mechanism to verify this information. The consumer timeline, depicted in Figure 4, is activated after scanning the package QR. This timeline presents the product-related information and the verification that the measurements are within the acceptable/recommended range (through the rules). The information is specific to each individual feta cheese package (i.e., the specific lot) and refers to the sequential production phases.
While Figure 4 depicts information on the milk collection and the initiation of the production, the following sections have a similar look and feel, and offer information on the maturation and packaging steps. There is also one section where the (registered) users can include evaluations and comments. In each section, two types of buttons appear at the bottom of the screen and can be coloured green or red. The first verifies the integrity of the data appearing in each phase (button named after the phase) and the second type allows the verification of the rules (button named ‘Rules’). The colour of the button signifies whether the data integrity and/or the compliance with the rule is verified (green) or not (red). Static information (i.e., not pertaining to a specific production/lot) is also included, such as recipes.

4.1. Data Integrity Verification

Consumers can verify the integrity of the data depicted in each specific section (e.g., mixing), following a set of steps. For instance, for the mixing phase, the consumer activates the respective button (mixing) and the platform retrieves the data from the private ledger and their secure hash from the public one. The verification is based on the re-calculation of the data hash (Merkle root) and the comparison of the calculated hash with the hash stored in the public ledger.
If the two values are equal, the data integrity is verified, and consumers can be certain that the data existed in this exact form at that specific time. In the contrary case, the data integrity cannot be verified due to one or more reasons: (a) failure to register the secure hash in the public ledger, (b) intended or unintended loss of data integrity.
While the data integrity is verified and visualised by the platform, one of the challenges of this study has been to offer the information and tools to the consumer to directly perform the integrity verification. To this end, the consumer can view (through the activation of a feature named Transaction Receipt, the data written on the chain, the hash of the data registration transaction, the timestamp, and the name of the event triggered on chain (ProductionStartLog), as depicted in Figure 5. Specifically, on the right (within the white text box), this information is presented in a coded, brief format, as registered in the ledger. It includes all information, and is adequately comprehensible.
The Calculate hash feature (button) calculates the Merkle root of the registered data. The calculation is performed through an embedded library (pymerkle, implementing Merkle tree in Python) resulting in the hash value depicted in the lower-right part of Figure 5. In parallel, as the data are downloadable in JSON (JavaScript Object Notation) format, external, third-party tools can be used for hashing (SHA256).
‘477dd41c4571b48d832c119dfafe6f950379f3f769ff0b7ee07ff1bd72311e29′.
Upon calculation of the data hash, the consumer can compare the calculated value with the (anchoring) value stored in the public blockchain. If the comparison is successful (equal values), this verifies the integrity of the data and its existence at the time indicated. The data on the public ledger are accessible through the Validate button linking to the public ledger (Sepolia Testnet, as depicted in Figure 6). The information registered in the public blockchain also includes the name of the event triggered on-chain and the address of the blockchain contract.
Network-level information on the transaction is available through the Ethereum (Sepolia Testnet) block explorer, as depicted in Figure 7. Such information includes the timestamp, the method (data registration), the transaction fee and the address of the contract (in the field ‘to’). In addition, the status field indicates that the (registration) operation has been successful.

4.2. Compliance with Rules

The compliance with the production rules (as included in Table 2) can also be verified, activating the button rules (Figure 4). This feature retrieves the result of the smart contracts, which compare the on-chain data (from the private ledger) based on the codified feta cheese production rules. As discussed, the rules are based on comparison of the actual values with predetermined values and/or ranges to ensure conformity for each of the concerned phases. Upon verification, the Phase button becomes available and has a green colour (or red if the rules are not verified).

5. Discussion

The methodology and the platform have been applied under realistic conditions. Specifically, a series of cheese productions have been performed with similar characteristics as the commercial productions with the addition of blockchain-enabled traceability. During the pilot, a series of challenges and limitations emerged, which we discuss in this section as well as relevant design decisions and mitigations.

5.1. Limitations and Challenges

First, the process of applying the smart contracts is rigorous. Once designed and implemented, the smart contracts cannot change. This characteristic increases the trustworthiness of the information and validation, and at the same time necessitates special attention to the design and specification of the contracts.
The volume of the operational data to be registered can be dynamic. For instance, the number of breeders participating in a milk collection can vary per day, and this is reflected in the volume of data to be registered. In addition, the thoroughness and verbosity of describing the measurable parameters can vary, affecting the volume of the data that will be registered in the blockchain. The volume of data typically affects the number of blockchain transactions.
Increase in and volatility of data volume and rate of transactions are challenging to blockchain infrastructure, especially public ones, due to delays and cost. Depending on the consensus algorithm, the transactions can be executed in one or more nodes, affecting the delay. For example, in the Ethereum network, every transaction is executed by each participating node within the network and the chain employs a fee structure relative to the computational complexity of each transaction, using gas as the unit of measurement. This results in a relatively low transaction rate in the ledger. This limitation affects the registration of information, i.e., the production steps. While this aspect is considered for the scalability perspective, in our case the interval between the production steps significantly exceeds such delays, so the impact is negligible. Furthermore, the consumer retrieves information, which is a much lighter task (in comparison with the execution of transactions). This means that the performance is not affected by the transaction rate and is comparable with communication with a typical ICT system, and the impact to the consumer is minimal.
The blockchain can verify data integrity and authenticity after it is registered in the network. However, it is challenging to ensure the validity of the data at the edge of the network. These challenges are further amplified considering that measurements may be taken and registered manually, as in the case of black-boxed equipment, i.e., not interoperable with the rest of the ICT infrastructure. The level of automation and networking of the operational processes can vary. For example, in some cases, milk-collecting vehicles are equipped with networked sensors that can retrieve and share measurements in real time, while in other cases, the measurements are taken with human intervention. Human intervention can be a vulnerable point for data authenticity due to unintended errors and/or data tampering.
One more challenge is related to the dynamic nature of the blockchain infrastructures as well as the evolution of the consensus algorithms applied. For example, the Ethereum network migrated from proof-of-work to proof-of-stake consensus algorithms, in a transition known as the Merge (See more: https://ethereum.org/en/roadmap/merge/). This drastic change has necessitated the transition of the smart contracts to the new testnets. While the logic of the smart contracts for this study has been straightforward, frequent changes could potentially pose difficulties.
To mitigate the transaction rate limitations, a dual-chain (private and public) architecture has been applied. The private ledger, Quorum, is using the IPFT consensus algorithm with increased throughput capabilities (transaction rate) by design. This performs the transactions registering the full set information. The public chain, with a lower transaction rate, registers (anchors) the Merkle roots of the data registered in the private one. This combination provides for efficiency and public visibility.

5.2. Effective Management of On-Chain Data

The rationalisation and management of the on-chain data volume has been based on effective data coding, data ordering, and memory allocation.
Considering the types and formats of operational parameters, we have employed ‘laconic’ data coding, avoiding unnecessary/redundant information and separating values with a special character (#).
The (optimised and compressed) data-coding schema is as follows:
BreederID#pH_value#temperature_value#sheepQuantity_value#goatQuantity_value
The values of the parameters are included in a specific order, while the breeders are referred to through their ID without repetition of the names within the on-chain data. This results in an explainable but not verbose format (contrary to the more interoperable formatting of JSON structures).
In terms of data ordering, the data stored on smart contracts are ordered according to their data type. The Ethereum virtual machine memory has slots of 256 bits, and the variables are declared in an order that ensures the minimum number of slots used. If, for example, we declare two uint128 (unsigned integers of 128 bits) variables and a string variable on a smart contract, the uint128 variables occupy 128 bits while the string occupies a whole memory slot (256 bits) as the minimum. In this case, it is preferable to declare the two uint128 variables first, as they fit in a single slot and in total two memory slots are occupied, as depicted in Figure 8. Instead, if the string variable is declared in between the other variables, three slots will be occupied.
To rationalise the memory used by the smart contracts, the variables are allocated only the memory needed. This is calculated considering the lower and upper boundaries of the operational parameters. If, for example, a variable is expected to have a value below or equal to 255, an 8-bit unsigned integer is preferable to an integer. Regarding the milk collection items, the maximum number of collection items is set to 65,000 so that it is coded as an integer of 16 bits.

5.3. Data Verification at the Edge

To mitigate the risk of faulty data input at the edge of the infrastructure, an internal, sequential verification of the information among the supply chain actors is employed to ensure the authenticity of the input data. This is performed by stakeholders with complementary (or even competitive) roles. Particularly, during the milk collection phase, the collector records the initial information about the collected milk. Such recorded data must be subsequently verified by the processor (who receives the milk) and breeders (who provide the milk).
Another countermeasure that can be applied is to accompany the measurements with further ‘proof’, such as a geolocated and timestamped photograph of the measured parameter that is inserted and linked with the blockchain, e.g., through an IPFS (InterPlanetary File System). While this can be a mitigation measure, it cannot be applied in all cases. For example, in specific parts of the processing, the operator cannot/is not allowed to use extra equipment such as a camera and/or smartphone due to hygiene restrictions.

5.4. Migration of the Smart Contracts

The deployment and piloting of smart contracts were affected by the Ethereum Merge in September 2022 (See more: https://ethereum.org/en/roadmap/merge/). After this merge, the mainnet Ethereum operations were shifted to PoS (proof of stake) consensus algorithms. While this development/upgrade has been positive (considering the expected decrease of the carbon footprint of the network), it has made the testnets in use at that time (i.e., Ropsten, Rinkeby and Kovan) deprecated. The smart contracts have been migrated to testnets compatible with the consensus algorithm, namely, Goerli and Sepolia. The migration has been performed smoothly, and the PoS algorithm is currently used without any need for contract adaptation.

6. Conclusions

In this work, we have modelled the production of the PDO feta cheese and associated high-level product characteristics with measurable parameters. Through the analysis of the process steps (milk collection, production, maturation and packaging), the legislation framework, and best practices, we have derived a set of quantifiable rules. Based on these rules, structured traceability information is extracted and registered in the blockchain infrastructure. The rules, codified as blockchain smart contracts, verify the compliance with legislation. The rigorous and stringent process for feta production contributed to the structured and verifiable traceability.
From the blockchain perspective, the architecture involves a dual infrastructure, using a private ledger (Quorum) anchored to the public (Ethereum). This schema ensures data immutability, addressing the challenges of inadequate transaction throughput, and constrained, costly storage capacity. Efficient data coding, ordering, and memory allocation also contributed to effective data management. The adoption of the PoS (proof of stake) consensus algorithm in the Ethereum platform necessitated the migration of smart contracts, which has been seamless and verified backward compatibility. In addition, the consumer application has been designed to provide information and tools to perform direct verification of the traceability data and interact with the public blockchain.
Blockchain systems, while not immune to the possibility of inaccurate input data, offer robust protection against data tampering. Once data, whether accurate or not, are entered into a blockchain-based system, they become immutable and resistant to manipulation. Deliberate misinformation by supply chain actors can be swiftly traced and attributed to them, thanks to the inherent transparency and accountability of blockchain technology. Consequently, such misconduct can be deterred over time, as supply chain participants become collectively aware that falsifying data will not go unnoticed. To minimise the risk of erroneous data entry, corrective measures can be implemented by adding accurate information to supplement and rectify the erroneous data within the blockchain system. In our study, multiple independent chain actors participate to verify input information at the edge before data are registered in the ledger (e.g., the quantity of collected milk is verified by the breeder, the collector, and the processor).
Future work involves fine-tuning of the consumer application to ensure user-friendliness and the intuitiveness of the user interface, as well as the extension of the modelling process and the platform towards new dairy products (such as yoghurt). Furthermore, additional sources of information, either context-based (such as animal welfare) or generic (i.e., not associated with a specific lot) information (such as animal welfare and recipes, respectively), can be used as feeds to the blockchain infrastructure.

Author Contributions

Conceptualisation, A.P. and F.M.; methodology, A.P. and D.C.; software, F.M. and G.A.; validation, F.M., D.T. and T.Z.; formal analysis, A.P. and J.S.; data curation, D.C.; writing F.M., A.P., D.T. and G.A.; project administration, T.Z. and J.S. All authors have read and agreed to the published version of the manuscript.

Funding

This research was partially funded by the EU H2020 project FAIRCHAIN, contract no. 101000723, within the H2020 Framework Program of the European Commission.

Data Availability Statement

Research data can be available upon request.

Conflicts of Interest

Authors Filisia Melissari, Andreas Papadakis, Georgia Athanasiou and Theodore Zahariadis were employed by the company SYNELIXIS SOLUTIONS, Greece. Dimitris Chatzitheodorou was employed by the company Stymfalia S.A. The remaining authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.

References

  1. Vriezen, R.; Plishka, M.; Cranfield, J. Consumer willingness to pay for traceable food products: A scoping review. Br. Food J. 2022, 125, 1631–1665. [Google Scholar] [CrossRef]
  2. Feldmann, C.; Hamm, U. Consumers’ perceptions and preferences for local food: A review. Food Qual. Prefer. 2015, 40, 152–164. [Google Scholar] [CrossRef]
  3. Kendall, H.; Clark, B.; Rhymer, C.; Kuznesof, S.; Hajslova, J.; Tomaniova, M.; Brereton, P.; Frewer, L. A systematic review of consumer perceptions of food fraud and authenticity: A European perspective. Trends Food Sci. Technol. 2019, 94, 79–90. [Google Scholar] [CrossRef]
  4. Aung, M.M.; Chang, Y.S. Traceability in a food supply chain: Safety and quality perspectives. Food Control 2014, 39, 172–184. [Google Scholar] [CrossRef]
  5. Montgomery, H.; Haughey, S.A.; Elliott, C.T. Recent food safety and fraud issues within the dairy supply chain (2015–2019). Glob. Food Sec. 2020, 26, 100447. [Google Scholar] [CrossRef] [PubMed]
  6. European Commission. Feta PDO. Available online: https://agriculture.ec.europa.eu/farming/geographical-indications-and-quality-schemes/geographical-indications-food-and-drink/feta-pdo_en (accessed on 28 July 2023).
  7. Tsakalou, E.; Vlahos, G. Greece National Report—SUFISA Project; Athens. 2018. Available online: https://www.sufisa.eu/wp-content/uploads/2018/09/D_2.2-Greece-National-Report.pdf (accessed on 1 November 2023).
  8. Pidiaki, E.; Manouras, A.; Malissiova, E. Assessment of Feta Cheese Adulteration in the Region of Thessaly, Greece—Implications for Consumer Protection. 2016. Available online: https://iafp.confex.com/iafp/euro16/webprogram/Paper11608.html (accessed on 31 January 2023).
  9. Barnett, J.; Begen, F.; Howes, S.; Regan, A.; McConnon, A.; Marcu, A.; Rowntree, S.; Verbeke, W. Consumers’ confidence, reflections and response strategies following the horsemeat incident. Food Control 2016, 59, 721–730. [Google Scholar] [CrossRef]
  10. Velthuis, A.G.J.; Meuwissen, M.; Huirne, R.B.M. Distribution of direct recall costs along the milk chain. Agribus. Int. J. 2009, 25, 466–479. [Google Scholar] [CrossRef]
  11. Saberi, S.; Kouhizadeh, M.; Sarkis, J.; Shen, L. Blockchain technology and its relationships to sustainable supply chain management. Int. J. Prod. Res. 2019, 57, 2117–2135. [Google Scholar] [CrossRef]
  12. Nandi, M.L.; Nandi, S.; Moya, H.; Kaynak, H. Blockchain technology-enabled supply chain systems and supply chain performance: A resource-based view. Supply Chain. Manag. 2020, 25, 841–862. [Google Scholar] [CrossRef]
  13. Chittipaka, V.; Kumar, S.; Sivarajah, U.; Bowden, J.L.H.; Baral, M.M. Blockchain Technology for Supply Chains operating in emerging markets: An empirical examination of technology-organization-environment (TOE) framework. Ann. Oper. Res. 2022, 327, 465–492. [Google Scholar] [CrossRef]
  14. Chenchev, I. Classification of the DLT Consensus Algorithms with Focus on Blockchain. In Intelligent Sustainable Systems; Selected Papers of WorldS4 2022; Springer: Singapore, 2022; Volume 2, pp. 731–741. [Google Scholar]
  15. Sivula, A.; Shamsuzzoha, A.; Helo, P. Requirements for blockchain technology in supply chain management: An exploratory case study. Oper. Supply Chain. Manag. 2021, 14, 39–50. [Google Scholar] [CrossRef]
  16. Buterin, V. A next-generation smart contract and decentralized application platform. White Pap. 2014, 3, 1–2. [Google Scholar]
  17. Zheng, Z.; Xie, S.; Dai, H.-N.; Chen, W.; Chen, X.; Weng, J.; Imran, M. An overview on smart contracts: Challenges, advances and platforms. Futur. Gener. Comput. Syst. 2020, 105, 475–491. [Google Scholar] [CrossRef]
  18. De Filippi, P.; Hassan, S. Blockchain technology as a regulatory technology: From code is law to law is code. arXiv 2018, arXiv:1801.02507. [Google Scholar] [CrossRef]
  19. Köhler, S.; Pizzol, M. Technology assessment of blockchain-based technologies in the food supply chain. J. Clean. Prod. 2020, 269, 122193. [Google Scholar] [CrossRef]
  20. Vistro, D.M.; Farooq, M.S.; Rehman, A.U.; Malik, S. Smart application based blockchain consensus protocols: A systematic mapping study. In Proceedings of the 3rd International Conference on Integrated Intelligent Computing Communication & Security (ICIIC 2021), Bangalore, India, 6–7 August 2021; Atlantis Press: Dordrecht, The Netherlands, 2021; pp. 573–581. [Google Scholar]
  21. Ongaro, D.; Ousterhout, J. In search of an understandable consensus algorithm. In Proceedings of the 2014 USENIX Annual Technical Conference (USENIX ATC 14), Philadelphia, PA, USA, 19–20 June 2014; pp. 305–319. [Google Scholar]
  22. Castro, M.; Liskov, B. Practical byzantine fault tolerance. In Proceedings of the OsDI, New Orleans, LA, USA, 22–25 February 1999; Volume 99, pp. 173–186. [Google Scholar]
  23. Zhao, G.; Liu, S.; Lopez, C.; Lu, H.; Elgueta, S.; Chen, H.; Boshkoska, B.M. Blockchain technology in agri-food value chain management: A synthesis of applications, challenges and future research directions. Comput. Ind. 2019, 109, 83–99. [Google Scholar] [CrossRef]
  24. Menon, S.; Jain, K. Blockchain technology for transparency in agri-food supply chain: Use cases, limitations, and future directions. IEEE Trans. Eng. Manag. 2021, 71, 106–120. [Google Scholar] [CrossRef]
  25. Latino, M.E.; Menegoli, M.; Lazoi, M.; Corallo, A. Voluntary traceability in food supply chain: A framework leading its implementation in Agriculture 4.0. Technol. Forecast. Soc. Change 2022, 178, 121564. [Google Scholar] [CrossRef]
  26. Lin, Q.; Wang, H.; Pei, X.; Wang, J. Food safety traceability system based on blockchain and EPCIS. IEEE Access 2019, 7, 20698–20707. [Google Scholar] [CrossRef]
  27. Sendros, A.; Drosatos, G.; Efraimidis, P.S.; Tsirliganis, N.C. Blockchain applications in agriculture: A scoping review. Appl. Sci. 2022, 12, 8061. [Google Scholar] [CrossRef]
  28. Casella, G.; Bigliardi, B.; Filippelli, S.; Bottani, E. Cases of application of blockchain on the supply chain: A literature review. Procedia Comput. Sci. 2023, 217, 1416–1426. [Google Scholar] [CrossRef]
  29. Kamilaris, A.; Fonts, A.; Prenafeta-Boldύ, F.X. The rise of blockchain technology in agriculture and food supply chains. Trends Food Sci. Technol. 2019, 91, 640–652. [Google Scholar] [CrossRef]
  30. Qian, J.; Fan, B.; Wu, X.; Han, S.; Liu, S.; Yang, X. Comprehensive and quantifiable granularity: A novel model to measure agro-food traceability. Food Control 2017, 74, 98–106. [Google Scholar] [CrossRef]
  31. Lucena, P.; Binotto, A.P.D.; Momo, F.d.S.; Kim, H. A case study for grain quality assurance tracking based on a Blockchain business network. arXiv 2018, arXiv:1803.07877. [Google Scholar]
  32. Shahid, A.; Almogren, A.; Javaid, N.; Al-Zahrani, F.A.; Zuair, M.; Alam, M. Blockchain-based agri-food supply chain: A complete solution. IEEE Access 2020, 8, 69230–69243. [Google Scholar] [CrossRef]
  33. Yao, Q.; Zhang, H. Improving agricultural product traceability using blockchain. Sensors 2022, 22, 3388. [Google Scholar] [CrossRef] [PubMed]
  34. Li, L.; Qu, H.; Wang, H.; Wang, J.; Wang, B.; Wang, W.; Xu, J.; Wang, Z. A Blockchain-Based Product Traceability System with Off-Chain EPCIS and IoT Device Authentication. Sensors 2022, 22, 8680. [Google Scholar] [CrossRef] [PubMed]
  35. Casino, F.; Kanakaris, V.; Dasaklis, T.K.; Moschuris, S.; Stachtiaris, S.; Pagoni, M.; Rachaniotis, N.P. Blockchain-based food supply chain traceability: A case study in the dairy sector. Int. J. Prod. Res. 2020, 59, 5758–5770. [Google Scholar] [CrossRef]
  36. Dey, S.; Saha, S.; Singh, A.K.; McDonald-Maier, K. FoodSQRBlock: Digitizing food production and the supply chain with blockchain and QR code in the cloud. Sustainability 2021, 13, 3486. [Google Scholar] [CrossRef]
  37. Alonso, R.S.; Sittón-Candanedo, I.; García, Ó.; Prieto, J.; Rodríguez-González, S. An intelligent Edge-IoT platform for monitoring livestock and crops in a dairy farming scenario. Ad. Hoc. Netw. 2020, 98, 102047. [Google Scholar] [CrossRef]
  38. Rambim, D.; Awuor, F.M. Blockchain based Milk Delivery Platform for Stallholder Dairy Farmers in Kenya: Enforcing Transparency and Fair Payment. In Proceedings of the 2020 IST-Africa Conference (IST-Africa), Kampala, Uganda, 18–22 May 2020; pp. 1–6. [Google Scholar]
  39. Varavallo, G.; Caragnano, G.; Bertone, F.; Vernetti-prot, L.; Terzo, O. Traceability Platform Based on Green Blockchain: An Application Case Study in Dairy Supply Chain. Sustainability 2022, 14, 3321. [Google Scholar] [CrossRef]
  40. Niya, S.R.; Dordevic, D.; Hurschler, M.; Grossenbacher, S.; Stiller, B.; Team, M. A Blockchain-based Supply Chain Tracing for the Swiss Dairy Use Case. In Proceedings of the 2020 2nd International Conference on Societal Automation (SA), Funchal, Portugal, 9–11 September 2020; pp. 1–8. [Google Scholar]
  41. Le Féon, S.; Papadakis, A.; Yannou-Le Bris, G.; Auberger, J.; Chatzitheodorou, D.; Aubin, J.; Pénicaud, C. Life cycle inventory and life cycle impact assessment datasets of PDO Feta production in Stymfalia region, Greece. Data Br. 2023, 48, 109207. [Google Scholar] [CrossRef] [PubMed]
  42. Bada, A.O.; Damianou, A.; Angelopoulos, C.M.; Katos, V. Towards a Green Blockchain: A Review of Consensus Mechanisms and their Energy Consumption. In Proceedings of the 17th International Conference on Distributed Computing in Sensor Systems DCOSS 2021, Virtual, 14–16 July 2021; pp. 503–511. [Google Scholar] [CrossRef]
  43. Mazzoni, M.; Corradi, A.; Di Nicola, V. Performance evaluation of permissioned blockchains for financial applications: The ConsenSys Quorum case study. Blockchain Res. Appl. 2022, 3, 100026. [Google Scholar] [CrossRef]
Figure 1. Sequence and steps of the methodology.
Figure 1. Sequence and steps of the methodology.
Jsan 13 00006 g001
Figure 2. Architecture based on anchored private to public chains.
Figure 2. Architecture based on anchored private to public chains.
Jsan 13 00006 g002
Figure 3. Smart contract code and deployment information.
Figure 3. Smart contract code and deployment information.
Jsan 13 00006 g003
Figure 4. Views from the consumer timeline. From left to right, there is information related to the origin of the raw material (collection) and information on the milk type mixing and preparation for a specific production.
Figure 4. Views from the consumer timeline. From left to right, there is information related to the origin of the raw material (collection) and information on the milk type mixing and preparation for a specific production.
Jsan 13 00006 g004
Figure 5. Transaction receipt on mixing phase.
Figure 5. Transaction receipt on mixing phase.
Jsan 13 00006 g005
Figure 6. Verification through the Sepolia Testnet (Ethereum).
Figure 6. Verification through the Sepolia Testnet (Ethereum).
Jsan 13 00006 g006
Figure 7. Network-level information on the transaction.
Figure 7. Network-level information on the transaction.
Jsan 13 00006 g007
Figure 8. Data ordering: random (left) and effective (right).
Figure 8. Data ordering: random (left) and effective (right).
Jsan 13 00006 g008
Table 1. Phases, roles parameters and rules of cheese production.
Table 1. Phases, roles parameters and rules of cheese production.
PhaseActorsProduct TraitsParameters
Milk collectionBreeder, collector, processor, labRaw material quality,
geographical origin
Breeder location, quantity, temperature, pH
Production initiationProcessorFood integrity (legislation),
traditional methods
Milk mixing percentages,
pre-processing
MaturationProcessorFood integrity (legislation),
Traditional methods
pH values, duration, checks
PackagingProcessorTrustworthy traceability infoType and quantity of packaged material
Table 2. Information and actions per section in the timeline.
Table 2. Information and actions per section in the timeline.
PhaseRules
Milk collectionThe milk comes from specific locations.
No antibiotics are identified in the milk collected.
The pH and temperature of the collected milk are within appropriate range, i.e., [6.55, 6.85] and below 6 °C, respectively.
Production initiation Milk types include goat and sheep with specific mixing (sheep milk ≥ 70% of total milk)
Production preparation Filtration, and pasteurisation successfully completed
Consistent value of pH measured the next day
Maturation pH and brine density measured within appropriate range after the 1st maturation
pH after 2nd maturation lower than the measurement at the end of 1st maturation
The second maturation phase has been successfully completed according to visual and organoleptic checks.
Completion and Packaging The duration of maturation equals to or exceeds 2 months
Each package is labelled with the lot-specific QR.
Note: The rules based on the legislation framework are in italics.
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.

Share and Cite

MDPI and ACS Style

Melissari, F.; Papadakis, A.; Chatzitheodorou, D.; Tran, D.; Schouteten, J.; Athanasiou, G.; Zahariadis, T. Experiences Using Ethereum and Quorum Blockchain Smart Contracts in Dairy Production. J. Sens. Actuator Netw. 2024, 13, 6. https://doi.org/10.3390/jsan13010006

AMA Style

Melissari F, Papadakis A, Chatzitheodorou D, Tran D, Schouteten J, Athanasiou G, Zahariadis T. Experiences Using Ethereum and Quorum Blockchain Smart Contracts in Dairy Production. Journal of Sensor and Actuator Networks. 2024; 13(1):6. https://doi.org/10.3390/jsan13010006

Chicago/Turabian Style

Melissari, Filisia, Andreas Papadakis, Dimitris Chatzitheodorou, Duc Tran, Joachim Schouteten, Georgia Athanasiou, and Theodore Zahariadis. 2024. "Experiences Using Ethereum and Quorum Blockchain Smart Contracts in Dairy Production" Journal of Sensor and Actuator Networks 13, no. 1: 6. https://doi.org/10.3390/jsan13010006

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop