HalalChain: A Smart Contract-Based Halal Supply Chain Traceability System with Dual-Storage Architecture Role-Based Access Control

Citation

Giap, Jason Ong Heng and Neo, Han Foon and Teo, Chuan Chin and Mangruwa, Rajiv Dharma and Yuen, Yee Yen (2026) HalalChain: A Smart Contract-Based Halal Supply Chain Traceability System with Dual-Storage Architecture Role-Based Access Control. Electronics, 15 (12). p. 2647. ISSN 2079-9292

[img] Text
electronics-15-02647-v2.pdf - Published Version
Restricted to Repository staff only

Download (3MB)

Abstract

The integrity of halal supply chains is increasingly threatened by fragmented paper-based records, certificate fraud, and the absence of real-time traceability. This paper presents HalalChain, a blockchain-based halal product traceability system that enforces role-based access control (RBAC) through three Solidity smart contracts deployed on an Ethereum-compatible blockchain. HalalChain is designed for production deployment on an EVM-compatible Layer-2 or sidechain such as Polygon or BNB Chain, on which the contracts run without code changes. A dual-storage architecture synchronises every supply chain event to both a PostgreSQL relational database and the blockchain, balancing on-chain immutability with off-chain query performance. The system supports five stakeholder roles, namely administrator, supplier, manufacturer, logistics, and retailer, each restricted to specific supply chain event types enforced at the smart contract level. Consumers can verify product halal status and full supply chain history by scanning a QR code linked to a public verification endpoint that cross-checks database records against on-chain event counts, producing a chain-integrity indicator. As the current chain-integrity check is count-base, it can detect missing or extra database rows, but it cannot detect content-level modification if the row count remains unchanged. A total of 107 automated test cases were executed covering functional correctness, edge cases, end-to-end integration, and gas performance benchmarks. Core smart contract operations consume between 25,365 and 213,684 gas units, indicating feasible deployability on Ethereum-compatible networks. An exploratory analysis was carried out with a preliminary survey of 40 respondents (mean = 4.10 on a 5-point Likert scale), suggesting that consumer demand for blockchain-verified halal certification is encouraging. The results demonstrate that HalalChain provides a tamper-evident, role-enforced traceability foundation for the halal food industry. The system secures the digital chain of custody cryptographically and the physical–digital binding between the QR code, and the product remains a separate trust assumption requiring complementary anti-tamper mechanisms.

Item Type: Article
Uncontrolled Keywords: Blockchain, halal supply chain
Subjects: H Social Sciences > HB Economic theory. Demography > HB3711-3840 Business cycles. Economic fluctuations
Divisions: Faculty of Business (FOB)
Faculty of Information Science and Technology (FIST)
Depositing User: Ms Rosnani Abd Wahab
Date Deposited: 04 Aug 2026 07:23
Last Modified: 04 Aug 2026 07:23
URII: http://shdl.mmu.edu.my/id/eprint/16506

Downloads

Downloads per month over past year

View ItemEdit (login required)