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 a consensus set of data from multiple oracle contracts via the recent advance in online uncertainty quantification learning. Interesting, the consensus set provides a desired correctness guarantee under distribution shift and Byzantine adversaries. 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 security issues in blockchains.
翻译:智能合同的屏障链是分布式分类账系统,通过只允许智能合同的确定性操作,在分布式节点之间实现区划状态的一致性。然而,智能合同的力量是通过与随机离链数据的互动而得以实现的,这反过来又有可能破坏区划的一致性。为解决这一问题,使用甲骨文智能合同来提供单一一致的外部数据来源;但与此同时,这引入了一个单一的失败点,即“触角”问题。为了解决甲骨文问题,我们建议采用适应性一致的算法(ACon$2$2$),该算法通过最近在线不确定性量化学习的推进,从多重或甲骨牌合同中获取了一套协商一致的数据。有意思的是,共识集提供了分布式转换和拜占庭对手所希望的正确性保障。我们展示了两个价格数据集和埃黑奴案例研究的拟议算法的有效性。特别是,拟议算法的可靠性实施表明拟议算法的潜在实用性,意味着在线机器学习算法适用于解决密链中的安全问题。</s>