This is an early access version, the complete PDF, HTML, and XML versions will be available soon.
Open AccessArticle
HalalChain: A Smart Contract-Based Halal Supply Chain Traceability System with Dual-Storage Architecture Role-Based Access Control
by
Jason Ong Heng Giap
Jason Ong Heng Giap 1,
Han-Foon Neo
Han-Foon Neo 2,*,
Chuan-Chin Teo
Chuan-Chin Teo 3,
Rajiv Dharma Mangruwa
Rajiv Dharma Mangruwa 4
and
Yee Yen Yuen
Yee Yen Yuen 5
1
Faculty of Information Science and Technology, Multimedia University, Melaka 75450, Malaysia
2
Centre for Innovative and Immersive Technology, Centre of Excellence for Immersive Experience, Faculty of Information Science and Technology, Multimedia University, Melaka 75450, Malaysia
3
Centre for Advanced Analytics, Centre of Excellence for Artificial Intelligence, Faculty of Information Science and Technology, Multimedia University, Melaka 75450, Malaysia
4
Centre of Excellence for Human Centric Engineering, Research Institute of Sustainable Society, Business Administration Department, School of Economics and Business, Telkom University, Bandung 40257, Indonesia
5
Centre for Management and Marketing Innovation, Centre of Excellence of Business Innovation and Communication, Faculty of Business, Multimedia University, Melaka 75450, Malaysia
*
Author to whom correspondence should be addressed.
Electronics 2026, 15(12), 2647; https://doi.org/10.3390/electronics15122647 (registering DOI)
Submission received: 11 May 2026
/
Revised: 4 June 2026
/
Accepted: 11 June 2026
/
Published: 15 June 2026
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.
Share and Cite
MDPI and ACS Style
Ong Heng Giap, J.; Neo, H.-F.; Teo, C.-C.; Mangruwa, R.D.; Yuen, Y.Y.
HalalChain: A Smart Contract-Based Halal Supply Chain Traceability System with Dual-Storage Architecture Role-Based Access Control. Electronics 2026, 15, 2647.
https://doi.org/10.3390/electronics15122647
AMA Style
Ong Heng Giap J, Neo H-F, Teo C-C, Mangruwa RD, Yuen YY.
HalalChain: A Smart Contract-Based Halal Supply Chain Traceability System with Dual-Storage Architecture Role-Based Access Control. Electronics. 2026; 15(12):2647.
https://doi.org/10.3390/electronics15122647
Chicago/Turabian Style
Ong Heng Giap, Jason, Han-Foon Neo, Chuan-Chin Teo, Rajiv Dharma Mangruwa, and Yee Yen Yuen.
2026. "HalalChain: A Smart Contract-Based Halal Supply Chain Traceability System with Dual-Storage Architecture Role-Based Access Control" Electronics 15, no. 12: 2647.
https://doi.org/10.3390/electronics15122647
APA Style
Ong Heng Giap, J., Neo, H.-F., Teo, C.-C., Mangruwa, R. D., & Yuen, Y. Y.
(2026). HalalChain: A Smart Contract-Based Halal Supply Chain Traceability System with Dual-Storage Architecture Role-Based Access Control. Electronics, 15(12), 2647.
https://doi.org/10.3390/electronics15122647
Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details
here.
Article Metrics
Article Access Statistics
For more information on the journal statistics, click
here.
Multiple requests from the same IP address are counted as one view.