paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Verifying liquidity of recursive Bitcoin contracts

验证递归比特币合约的流动性
LMCS vol.Volume 18, Issue 12022匹配度 2/10 · 论文属于形式化验证与领域特定语言方向,虽涉及程序验证和工具链实现,但研究对象是 Bitcoin 智能合约流动性,不涉及 LLM/Agent、机器学习系统、浮点程序分析或贝叶斯程序分析,与用户当前核心交叉方向基本无关。引用 7 inbox
Massimo Bartoletti, Stefano Lande, Maurizio Murgia, Roberto Zunino
crossref: 2026-09-10

AI 速览

一句话:提出 BitML 合约流动性的有限状态抽象与模型检测方法,并实现自动验证与编译工具链。

智能合约中的流动性要求资产不会永久冻结,但以太坊上已出现导致数亿美元锁死的流动性攻击。本文针对可安全编译到比特币的智能合约 DSL BitML(支持货币转移、合约重协商和共识递归)提出流动性验证技术。作者将 BitML 的无限状态语义转化为有限状态抽象,只关注选定合约的行为并抽象掉上下文的动作,且证明该抽象是可靠的:若抽象合约流动,则具体合约也流动。随后用模型检测验证该有限状态抽象,并实现可自动验证流动性并编译到比特币的工具链,在代表性合约基准上评估。

问题
智能合约可能因设计缺陷导致资产永久冻结,即流动性攻击;论文关注如何在支持递归与重协商的 BitML 比特币合约上验证流动性。
方法
将 BitML 的无限状态语义抽象为针对选定合约的有限状态系统,抽象掉上下文动作并证明其可靠性,再用模型检测判定流动性。
评估
实现可自动验证 BitML 合约流动性并将其编译到比特币的工具链,并通过一组代表性合约基准进行评估。
原文摘要(Abstract)

Smart contracts - computer protocols that regulate the exchange of crypto-assets in trustless environments - have become popular with the spread of blockchain technologies. A landmark security property of smart contracts is liquidity: in a non-liquid contract, it may happen that some assets remain frozen, i.e. not redeemable by anyone. The relevance of this issue is witnessed by recent liquidity attacks to Ethereum, which have frozen hundreds of USD millions. We address the problem of verifying liquidity on BitML, a DSL for smart contracts with a secure compiler to Bitcoin, featuring primitives for currency transfers, contract renegotiation and consensual recursion. Our main result is a verification technique for liquidity. We first transform the infinite-state semantics of BitML into a finite-state one, which focusses on the behaviour of a chosen set of contracts, abstracting from the moves of the context. With respect to the chosen contracts, this abstraction is sound, i.e. if the abstracted contract is liquid, then also the concrete one is such. We then verify liquidity by model-checking the finite-state abstraction. We implement a toolchain that automatically verifies liquidity of BitML contracts and compiles them to Bitcoin, and we assess it through a benchmark of representative contracts.

链接与引用

DOI 原文 · PDF(开放获取) ·

BibTeX
@article{paperbot1733,
  title = {Verifying liquidity of recursive Bitcoin contracts},
  author = {Massimo Bartoletti and Stefano Lande and Maurizio Murgia and Roberto Zunino},
  journal = {Logical Methods in Computer Science},
  volume = {Volume 18, Issue 1},
  year = {2022},
  doi = {10.46298/lmcs-18(1:22)2022}
}