Azure区块链智能合约的形式化规范与验证
Formal Specification and Verification of Smart Contracts for Azure Blockchain
摘要:
确保智能合约的正确性对于确保基于区块链的系统的信任至关重要。本文研究了\emph{Azure Blockchain Workbench}中智能合约的安全性,这是微软提供的企业区块链即服务。作为本研究的一部分,我们针对具有访问控制策略的状态机模型对智能合约的\emph{semantic conformance}进行了形式化,并为Solidity开发了一个高度自动化的形式化验证器,该验证器可以生成证明和反例。我们已应用验证程序{ \sc VeriSol}来分析Azure Blockchain随附的{ \it all}合约,其中包括应用程序示例以及授权证明(PoA)的治理合约。我们在这些已发布的智能合约中发现了以前未知的错误。修复这些漏洞后,{ \sc VeriSol}能够成功对所有这些合同执行全面验证。
英文摘要:
Ensuring correctness of smart contracts is paramount to ensuring trust in blockchain-based systems. This paper studies the safety and security of smart contracts in the \emph{Azure Blockchain Workbench}, an enterprise Blockchain-as-a-Service offering from Microsoft. As part of this study, we formalize \emph{semantic conformance} of smart contracts against a state machine model with access-control policy and develop a highly-automated formal verifier for Solidity that can produce proofs as well as counterexamples. We have applied our verifier {\sc VeriSol} to analyze {\it all} contracts shipped with the Azure Blockchain Workbench, which includes application samples as well as a governance contract for Proof of Authority (PoA). We have found previously unknown bugs in these published smart contracts. After fixing these bugs, {\sc VeriSol} was able to successfully perform full verification for all of these contracts.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。