Formal Semantics and Implementation of Ethereum Smart Contracts for Blockchain-Based Supply Chain Attestation Flows: A Viticulture Case Study
Open Access
- 23 October 2025
- journal article
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Access
- Vol. 13, 186075-186089
Abstract
Blockchain and smart contracts promise to increase transparency and provide guarantees for supply chains, yet existing process modeling languages either impose unnecessary complexity or lack the primitives needed to capture attestation-centric workflows that are simpler in nature. This paper introduces Attestation-Flow Diagrams (AFDs), a domain-specific graph-based notation that focuses exclusively on how attestations are issued along a supply chain. We first formalize AFD syntax and trace-based operational semantics. To demonstrate practical viability, we provide an implementation of the semantics in EVM-based smart contracts by generating three implementations that span across the decentralization spectrum: (i) logging-only contracts that immutably store attestations; (ii) hybrid contracts that record both attestations and off-chain–computed state transitions; and (iii) fully on-chain contracts that execute the entire verification logic in Solidity. A detailed gas-cost study on a representative viticulture use case shows that event-based logging reduces deployment and per-transaction costs by up to an order of magnitude, while full on-chain verification offers maximal trust guarantees at the highest cost. The resulting framework enables designers to tune cost, transparency and computational load according to application needs, and lays a formal foundation for further research on optimizing and verifying attestation-driven supply-chain processes.Keywords
Funding Information
- European Commission
This publication has 31 references indexed in Scilit:
- A blockchain-based optimal peer-to-peer energy trading framework for decentralized energy management with in a virtual power plant: Lab scale studies and large scale proposalApplied Energy, 2024
- Smart contract generation for inter‐organizational process collaborationConcurrency and Computation: Practice and Experience, 2023
- RETRACTED ARTICLE: Implementation of blockchain-based e-voting systemMultimedia Tools and Applications, 2023
- TABS: Transforming automatically BPMN models into blockchain smart contractsBlockchain: Research and Applications, 2022
- A blockchain-based IoT data marketplaceCluster Computing, 2022
- Towards a Graphical DSL for Tracing Supply Chains on Blockchain2022
- Supply chain transparency through blockchain-based traceability: An overview with demonstrationComputers & Industrial Engineering, 2020
- Preparing construction supply chains for blockchain technology: An investigation of its potential and future directionsFrontiers of Engineering Management, 2020
- Caterpillar: A business process execution engine on the Ethereum blockchainSoftware: Practice and Experience, 2019
- Untrusted Business Process Monitoring and Execution Using Blockchain2016