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

2024年05月14日
当前区块链系统的封闭架构使得这种技术在解决广泛的现实问题时大多不可行。大多数区块链将用户和应用程序困在其孤立的空间中,没有合作或切换到其他区块链的可能性。因此,区块链需要额外的机制来实现它们之间和外部系统之间的无缝通信和任意数据交换。不幸的是,当前的跨区块链通信方法需要消耗大量资源,或者需要其他区块链或量身定制的解决方案,这取决于连接的区块链的共识机制。因此,我们提出了一种基于zk-SNARKs的离线聚合机制的预言机,以促进跨区块链通信。预言机从另一个区块链查询数据,并应用类似于Rollup的机制将状态和计算移出链下。zkOracle合约仅期望传输的数据、更新的状态根和正确执行聚合机制的证明。所提出的解决方案仅需要恒定的378 kgas在以太坊区块链上提交数据,并且主要独立于所查询的区块链的基础技术。
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.
许愿