Blockchains with smart contracts are distributed ledger systems that achieve block-state consistency among distributed nodes by only allowing deterministic operations of smart contracts. However, the power of smart contracts is enabled by interacting with stochastic off-chain data, which in turn opens the possibility to undermine the block-state consistency. To address this issue, an oracle smart contract is used to provide a single consistent source of external data; but, simultaneously, this introduces a single point of failure, which is called the oracle problem. To address the oracle problem, we propose an adaptive conformal consensus (ACon$^2$) algorithm that derives consensus from multiple oracle contracts via the recent advance in online uncertainty quantification learning. In particular, the proposed algorithm returns a consensus set, which quantifies the uncertainty of data and achieves a desired correctness guarantee in the presence of Byzantine adversaries and distribution shift. We demonstrate the efficacy of the proposed algorithm on two price datasets and an Ethereum case study. In particular, the Solidity implementation of the proposed algorithm shows the potential practicality of the proposed algorithm, implying that online machine learning algorithms are applicable to address issues in blockchains.
翻译:智能合同的屏障链是分布式分类账系统,通过只允许智能合同的确定性操作,在分布式节点之间实现区划状态的一致性。然而,智能合同的力量是通过与随机离链数据的互动而得以实现的,这反过来又有可能破坏区划的一致性。为解决这一问题,使用一个神器智能合同来提供单一一致的外部数据来源;但与此同时,这引入了一个单一的失败点,即“触角”问题。为了解决“触角”问题,我们提议了一种适应性一致的算法(ACon$2$2$),该算法通过最近在线不确定性量化学习的推进从多个或甲级合同中获得共识。特别是,拟议的算法返回了一套共识,它量化了数据的不确定性,并在Byzantine对手和分销转移时实现了预期的正确性保证。我们展示了两个价格数据集的拟议算法和Eeeum案例研究的功效。特别是,拟议算法的“可靠性”性实施显示了拟议算法的潜在实用性,意味着在线机器学习算法适用于解决区链中的问题。</s>