BitVMX:一种在比特币上进行通用计算的 CPU
BitVMX: A CPU for Universal Computation on Bitcoin
AI总结:
本文提出 BitVMX 虚拟 CPU,利用程序轨迹哈希链、内存映射寄存器和新质询-响应协议,在 Bitcoin script 中验证 RISC-V/MIPS 等通用计算。
摘要:
BitVMX 是一种虚拟 CPU 的新设计,用于基于 BitVM 中引入的质询-响应博弈,在比特币上乐观地执行任意程序。与 BitVM1 类似,我们创建了一个可在 Bitcoin script 中验证的通用 CPU。我们的设计支持常见架构,例如 RISC-V 或 MIPS。我们对现有技术的主要贡献是一种使用程序轨迹哈希链、内存映射寄存器以及新质询-响应协议的设计。我们提出了一种新的消息链接协议,作为允许参与者之间进行认证通信的手段。该协议通过在交易之间共享状态来模拟有状态智能合约。这为我们的验证博弈提供了基础,该博弈使用预签名交易图来支持质询-响应交互。在发生争议时,程序轨迹哈希链与选择性预签名交易一起使用,以定位(通过 n 元搜索)并随后恢复计算中错误的确切性质。与 BitVM1 不同,我们的方法不需要为 CPU 指令或内存字创建 Merkle 树。此外,它不依赖于签名含糊性。这些差异有助于避免与 BitVM1 相关的复杂性,并使 BitVMX 成为 BitVM2 的一个有吸引力的替代方案。我们的方法非常灵活,BitVMX 可以被实例化,以平衡交易成本与轮次复杂度、证明者成本与验证者成本,以及预计算与轮次复杂度。
英文摘要:
BitVMX is a new design for a virtual CPU to optimistically execute arbitrary programs on Bitcoin based on a challenge response game introduced in BitVM. Similar to BitVM1 we create a general-purpose CPU to be verified in Bitcoin script. Our design supports common architectures, such as RISC-V or MIPS. Our main contribution to the state of the art is a design that uses hash chains of program traces, memory mapped registers, and a new challenge-response protocol. We present a new message linking protocol as a means to allow authenticated communication between the participants. This protocol emulates stateful smart contracts by sharing state between transactions. This provides a basis for our verification game which uses a graph of pre-signed transactions to support challenge-response interactions. In case of a dispute, the hash chain of program trace is used with selective pre-signed transactions to locate (via $n$-ary search) and then recover the precise nature of errors in the computation. Unlike BitVM1, our approach does not require the creation of Merkle trees for CPU instructions or memory words. Additionally, it does not rely on signature equivocations. These differences help avoid complexities associated with BitVM1 and make BitVMX a compelling alternative to BitVM2. Our approach is quite flexible, BitVMX can be instantiated to balance transaction cost vs round complexity, prover cost vs verifier cost, and precomputations vs round complexity.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。