【24h】

The Extended UTXO Model

机译:扩展的UTXO模型

获取原文

摘要

Bitcoin and Ethereum, hosting the two currently most valuable and popular cryptocurrencies, use two rather different ledger models, known as the UTXO model and the account model, respectively. At the same time, these two public blockchains differ strongly in the expressiveness of the smart contracts that they support. This is no coincidence. Ethereum chose the account model explicitly to facilitate more expressive smart contracts. On the other hand, Bitcoin chose UTXO also for good reasons, including that its semantic model stays simple in a complex concurrent and distributed computing environment. This raises the question of whether it is possible to have expressive smart contracts, while keeping the semantic simplicity of the UTXO model. In this paper, we answer this question affirmatively. We present Extended UTXO (EUTXO), an extension to Bitcoin's UTXO model that supports a substantially more expressive form of validation scripts, including scripts that implement general state machines and enforce invariants across entire transaction chains. To demonstrate the power of this model, we also introduce a form of state machines suitable for execution on a ledger, based on Mealy machines and called Constraint Emitting Machines (CEM). We formalise CEMs, show how to compile them to EUTXO, show a weak bisimu-lation between the two systems. All of our work is formalised using the Agda proof assistant.
机译:托管两种当前最有价值和最受欢迎的加密货币的比特币和以太坊使用两种截然不同的分类帐模型,分别称为UTXO模型和帐户模型。同时,这两个公共区块链在它们所支持的智能合约的表达方式上有很大的不同。这不是巧合。以太坊明确选择了账户模型以促进更具表现力的智能合约。另一方面,比特币之所以选择UTXO也有充分的理由,包括其语义模型在复杂的并发和分布式计算环境中保持简单。这就提出了一个问题,即在保持UTXO模型的语义简单性的同时,是否可能具有表达性的智能合约。在本文中,我们肯定地回答了这个问题。我们提出了扩展UTXO(EUTXO),它是比特币UTXO模型的扩展,它支持实质上更具表现形式的验证脚本,包括实现通用状态机并在整个交易链中实施不变式的脚本。为了演示此模型的功能,我们还基于Mealy机器(称为约束发射机器(CEM)),介绍了一种适合在分类账上执行的状态机形式。我们将CEM形式化,展示如何将其编译为EUTXO,并展示两个系统之间的弱双向仿真。我们所有的工作都使用Agda证明助手进行了形式化。

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号