关于原子交换智能合约的规范和验证
On the specification and verification of atomic swap smart contracts
摘要:
区块链系统和智能合约提供了在不使用可信中介的情况下安全地实现多方交易的方法,而可信中介目前是许多商业交易的基础。但是,它们是通过将信任传递给计算机系统来实现这一点的,这就提出了代码是否可信的问题。错误代码导致的高价值损失的经验已经表明,智能合约的形式化验证可能是有益的。本文研究了一种简单形式的多方事务原子交换的规范和验证。有人认为,逻辑的能力来表达属性的球员在多智能体设置的策略在概念上是有用的,为此目的,虽然最终,对于我们的具体例子,时间逻辑的表达能力较低的设置足以验证具体的实现。通过使用模型检查器来验证链上和跨链设置中的原子交换智能合约的一些示例来说明这一点。
英文摘要:
Blockchain systems and smart contracts provide ways to securely implement multi-party transactions without the use of trusted intermediaries, which currently underpin many commercial transactions. However, they do so by transferring trust to computer systems, raising the question of whether code can be trusted. Experience with high value losses resulting from incorrect code has already shown that formal verification of smart contracts is likely to be beneficial. This note investigates the specification and verification of a simple form of multi-party transaction, atomic swaps. It is argued that logics with the ability to express properties of strategies of players in a multi-agent setting are conceptually useful for this purpose, although ultimately, for our specific examples, the less expressive setting of temporal logic suffices for verification of concrete implementations. This is illustrated through a number of examples of the use of a model checker to verify atomic swap smart contracts in on-chain and cross-chain settings.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。