Cross-Blockchain Communication Using Oracles With an Off-Chain Aggregation Mechanism Based on zk-SNARKs

Michael Sober,Giulia Scaffino,Stefan Schulte
2024-05-14
Abstract:The closed architecture of prevailing blockchain systems renders the usage of this technology mostly infeasible for a wide range of real-world problems. Most blockchains trap users and applications in their isolated space without the possibility of cooperating or switching to other blockchains. Therefore, blockchains need additional mechanisms for seamless communication and arbitrary data exchange between each other and external systems. Unfortunately, current approaches for cross-blockchain communication are resource-intensive or require additional blockchains or tailored solutions depending on the applied consensus mechanisms of the connected blockchains. Therefore, we propose an oracle with an off-chain aggregation mechanism based on ZeroKnowledge Succinct Non-interactive Arguments of Knowledge (zk-SNARKs) to facilitate cross-blockchain communication. The oracle queries data from another blockchain and applies a rollup-like mechanism to move state and computation off-chain. The zkOracle contract only expects the transferred data, an updated state root, and proof of the correct execution of the aggregation mechanism. The proposed solution only requires constant 378 kgas to submit data on the Ethereum blockchain and is primarily independent of the underlying technology of the queried blockchains.
Cryptography and Security,Distributed, Parallel, and Cluster Computing
What problem does this paper attempt to address?
The problem that this paper attempts to solve is the interoperability problem between blockchains, especially the challenges of seamless communication and arbitrary data exchange between different blockchain systems. Specifically: 1. **Isolation Caused by Closed Architectures**: Existing blockchain systems are usually closed, and users and applications are restricted to isolated spaces and cannot collaborate or switch with other blockchains or external systems. 2. **Resource - Intensive Solutions**: Current cross - blockchain communication methods are either very resource - consuming or require additional blockchains or customized solutions that rely on specific consensus mechanisms. 3. **Lack of Universality and Flexibility**: Existing solutions often rely on specific blockchain technologies and are difficult to be applied to a wide range of blockchain environments. To solve these problems, the author proposes a decentralized oracle based on zero - knowledge Succinct Non - Interactive Argument of Knowledge (zk - SNARKs) and combines an off - chain aggregation mechanism to achieve cross - blockchain communication. The main objectives of this method are: - **Reducing Resource Consumption**: By moving states and calculations off - chain, reduce the use of on - chain resources. - **Improving Universality**: Enable the oracle to query arbitrary information independently of the internal mechanisms of the source blockchain. - **Ensuring Security**: Use zk - SNARKs to verify the correctness of the off - chain aggregation mechanism and ensure the authenticity and integrity of data. Through these improvements, this scheme aims to break the barriers between heterogeneous blockchain systems, achieve safe and efficient cross - blockchain communication, and thus support a wider range of application scenarios.