arXiv:2608.26858cs.CRAug 2026

Manuscript Offprint

arXiv:2608.26858

Information Flow Control in Off-Chain Components

Stian Lybech, Eun-Young Kang, Riccardo Tonello, Anders Dalskov

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Stian Lybech 1^{1}[0000-0001-8219-2285], Eun-Young Kang 1^{1}[0000-0002-4589-2378], Riccardo Tonello 2^{2}[0000-0001-8098-3235], and Anders Dalskov 3^{3}[0000-0002-3881-4742]

1^{1} University of Southern Denmark, Odense, Denmark {stly,eyk}@mmmi.sdu.dk

2^{2} Danish Technological Institute, Aarhus, Denmark rict@teknologisk.dk

3^{3} Partisia Applications ApS, Aarhus, Denmark anderspkd@partisia.com

Abstract. This paper develops a model of a smart-contract language for a blockchain architecture with off-chain components. Off-chain components are pieces of smart contracts that execute at designated locations outside of the network of blockchain nodes, but remain synchronised with the on-chain contract state. They react to changes to the on-chain state, but may also notify the on-chain component about events in the world, e.g. stock prices, weather data etc., or even act as a bridge between different blockchains. This affords greater flexibility for the developer, but may also enable new vulnerabilities. As a concrete example, we use the model to study the problem of ensuring integrity and secrecy of data between the on-chain and off-chain components, using static information flow control techniques. This fails, even in the absence of a loop construct, because off-chain components act as separate threads and can encode a blocking construct e.g. through recursive method calls. We end the paper with a discussion of possible ways to remedy this situation.

Keywords: Blockchain · smart contract language · off-chain component · information flow control

1 Introduction

Smart contracts are programs that run atop a blockchain and are executed by all participating nodes as part of the state-update. Originally, they were used to facilitate automatic transfer of cryptocurrency, once certain, programmable conditions were satisfied [6,23]. However, with newer blockchain architectures moving away from reliance on a cryptocurrency for ensuring consensus between nodes (e.g. [4]), smart contracts are become a general technology for coordinating distributed programs. These blockchains are essentially distributed, replicated databases, providing a permanent record of all changes to the current state. Such permanent, verifiable records are, for example, increasingly relevant to Additive Manufacturing (AM), also known as 3D printing, where blockchains can secure the “digital thread”, i.e. the end-to-end chain of data linking a part to its design file, material batch, machine, and process parameters, thereby underpinning certification, intellectual-property protection, and counterfeit prevention [13,11].

S. Lybech et al.

Blockchain is attractive in this setting because it provides an immutable audit trail and a decentralised trust layer across distributed manufacturing stakeholders. However, smart contracts executing entirely on-chain are not well suited to all industrial scenarios. On-chain execution is ill-suited for computationally expensive tasks and for continuous interaction with events in the physical world. Modern blockchain architectures therefore increasingly rely on off-chain components [8], i.e., pieces of smart-contract logic that execute at designated locations outside of the network of blockchain nodes whilst remaining synchronised with the on-chain state. They can react to changes to the on-chain state, but may also notify the on-chain component about events in the world, e.g. stock prices, weather data etc., or even act as a bridge between different blockchains. Data storage and complex computations may thus be moved off-chain.

Off-chain components can react to blockchain updates, interface with external data sources, and support interactions with real-world systems, thereby making blockchain technology more practical for AM workflows. This hybrid architecture, however, also raises new verification challenges. While the blockchain offers immutability and public verifiability, off-chain components process data and perform computations beyond the direct control of the consensus mechanism. In AM settings, such components may handle sensitive design files, production parameters, or event data originating from machines and external services, which must therefore be protected. This is further underlined in the newly adopted EU Cyber Resilience Act (CRA) [21], which imposes a collection of obligations on manufacturers of products with digital elements. Such products are specifically required to protect the integrity and secrecy of data, at rest or in transit [21, Annex I, e-f]. Consequently, ensuring both integrity and secrecy of information flows between on-chain and off-chain components becomes essential for integrating blockchain technology with AM workflows.

Unfortunately, verifying the safety of a smart contract w.r.t. any notion of safety is often hampered by the lack of a formal semantics for the smart-contract language. Sometimes, such a semantics may be given post-hoc for the purpose of developing verification tools (see e.g. [9,19,18] for the Ethereum Virtual Machine language), but this comes with the caveat that the true specification is given by the implementation.

A different approach, followed by e.g. [7,5,10] is to begin by defining a small calculus capturing the core features of the smart-contract language or blockchain architecture of interest, in order to study the safety properties in a more abstract setting. In the present paper, we shall follow this latter approach. Thus, we develop a formal model of a smart-contract language, TINYCHAIN, with inline off-chain components for a blockchain architecture. The model is inspired by our industrial partner [16], but may also be used to represent other architectures with similar features; we review this architecture in Section 2.

The language follows in the tradition of TINYSOL [5,1,3,2,12], which has been used to study features of the Solidity smart contract language for the Ethereum platform [23]; however, unlike these aforementioned models, our purpose here is not to model one particular smart-contract language, but rather to model the general architecture. It captures concurrency, point-to-point communication, and broadcast-style synchronisation between on-chain and off-chain execution contexts. Thus, the semantics takes inspiration both from classic models of concurrent, communicating systems, such as the π\pi-calculus by Milner, Walker and Parrow [14], but also of the calculus of broadcasting systems by Prasad [17]. We give the syntax and semantics in Section 3.

As a concrete application, we use the model to study the problem of enforcing integrity and secrecy of information flows between on-chain and off-chain components using static information-flow control techniques, such as the classic type system by Volpano, Irvine and Smith [22]. In Section 4, we show that this fails even in the absence of an explicit loop construct, because off-chain components effectively behave as separate threads and can encode blocking behavior through recursive method calls.