计算机科学 > 程序设计语言
[提交于 2020年5月20日]
标题:Formal Specification and Verification of Solidity Contracts with Events
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:Events in the Solidity language provide a means of communication between the on-chain services of decentralized applications and the users of those services. Events are commonly used as an abstraction of contract execution that is relevant from the users' perspective. Users must, therefore, be able to understand the meaning and trust the validity of the emitted events. This paper presents a source-level approach for the formal specification and verification of Solidity contracts with the primary focus on events. Our approach allows specification of events in terms of the on-chain data that they track, and predicates that define the correspondence between the blockchain state and the abstract view provided by the events. The approach is implemented in solc-verify, a modular verifier for Solidity, and we demonstrate its applicability with various examples.
提交历史
来自:Ákos Hajdu[v1] 2020年5月20日 星期三 22:48:25 UTC