EventWarden:一种去中心化的事件驱动代理服务,用于在类以太坊区块链中外包任意交易
EventWarden: A Decentralized Event-driven Proxy Service for Outsourcing Arbitrary Transactions in Ethereum-like Blockchains
摘要:
交易是区块链的基本组成部分,因为它们是用户改变区块链状态的主要手段。当前的区块链系统,如比特币和以太坊,要求用户不断观察区块链中发生的事件或感兴趣的状态变化,并要求用户显式释放所需的交易以响应区块链中观察到的事件。本文提出了EventWarden,这是一种分散的事件驱动代理服务,供用户在类似以太坊的区块链中外包交易。EventWarden采用了智能合约和区块链日志的新颖组合。EventWarden允许用户创建一个代理智能合约,指定一个感兴趣的事件,并保留一个任意的交易来释放。在观察到指定事件发生后,区块链网络中的任何人都可以调用代理合约,通过向合约证明事件已记录到区块链日志中来赚取合约中预留的服务费,然后自动触发代理合约释放预留的交易。我们证明了只有当指定事件发生时,保留交易才能从代理合同中释放出来。我们还证明,只要区块链网络中的单个成员在规定的事件发生后被服务费激励调用代理合约,保留的交易就保证会被释放。我们在以太坊官方测试网络上实现EventWarden。实验结果表明EventWarden是有效的,并且在实践中是现成的。
英文摘要:
Transactions represent a fundamental component in blockchains as they are the primary means for users to change the blockchain state. Current blockchain systems such as Bitcoin and Ethereum require users to constantly observe the state changes of interest or the events taking place in a blockchain and requires the user to explicitly release the required transactions to respond to the observed events in the blockchain. This paper proposes EventWarden, a decentralized event-driven proxy service for users to outsource transactions in Ethereum-like blockchains. EventWarden employs a novel combination of smart contracts and blockchain logs. EventWarden allows a user to create a proxy smart contract that specifies an interested event and also reserves an arbitrary transaction to release. Upon observing the occurrence of the prescribed event, anyone in the Blockchain network can call the proxy contract to earn the service fee reserved in the contract by proving to the contract that the event has been recorded into blockchain logs, which then automatically triggers the proxy contract to release the reserved transaction. We show that the reserved transaction can only get released from the proxy contract when the prescribed event has taken place. We also demonstrate that as long as a single member in the Blockchain network is incentivized by the service fee to call the proxy contract after the prescribed event has taken place, the reserved transaction is guaranteed to get released. We implement EventWarden over the Ethereum official test network. The results demonstrate that EventWarden is effective and is ready-to-use in practice.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。