arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1904.06534cs.PLcs.CR
收藏

Flint打造更安全的智能合约

Flint for Safer Smart Contracts

Franklin Schrans, Daniel Hails, Alexander Harkness, Sophia Drossopoulou, Susan Eisenbach

摘要:

以太坊区块链平台支持去中心化应用程序或智能合约的执行。它们通常持有数字货币并将其转移给平台上的其他方;然而,由于无意中引入了漏洞,它们受到了许多攻击。自2015年7月发行以来,价值超过10亿美元的货币被盗。由于智能合约在部署后无法更新,因此程序设计语言必须支持健壮合约的开发。我们提出了Flint,一种新的静态类型的程序设计语言,专门用于编写健壮的智能合约。Flint的特性强制编写安全和可预测的代码。为了鼓励良好的实践,我们引入了保护块。保护块限制谁可以运行代码以及何时(使用typestate)可以执行代码。为了防止与货币意外丢失相关的漏洞,Flint Asset特征提供了安全的原子操作,确保合约状态始终一致。对状态的写入受到限制,简化了对智能合约的推理。

英文摘要:

The Ethereum blockchain platform supports the execution of decentralised applications or smart contracts. These typically hold and transfer digital currency to other parties on the platform; however, they have been subject to numerous attacks due to the unintentional introduction of bugs. Over a billion dollars worth of currency has been stolen since its release in July 2015. As smart contracts cannot be updated after deployment, it is imperative that the programming language supports the development of robust contracts. We propose Flint, a new statically-typed programming language specifically designed for writing robust smart contracts. Flint's features enforce the writing of safe and predictable code. To encourage good practices, we introduce protection blocks. Protection blocks restrict who can run code and when (using typestate) it can be executed. To prevent vulnerabilities relating to the unintentional loss of currency, Flint Asset traits provide safe atomic operations, ensuring the state of contracts is always consistent. Writes to state are restricted, simplifying reasoning about smart contracts.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑