arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2004.05106cs.PL
收藏

资源:一种安全的货币语言抽象

Resources: A Safe Language Abstraction for Money

Sam Blackshear, David L. Dill, Shaz Qadeer, Clark W. Barrett, John C. Mitchell, Oded Padon, Yoni Zohar

摘要:

智能合约是在现代区块链平台上实现潜在复杂交易的程序。在快速发展的区块链环境中,智能合约程序设计语言必须允许用户编写富有表现力的程序来管理和转移资产,同时提供强大的保护来抵御复杂的攻击。为了满足这一需求,我们在Move语言中为数字货币编程提供了灵活可靠的抽象[Blackshear et al. 2019]。Move使用了新颖的线性资源类型[Girard 1987],其语义借鉴了C++11 [Stroustrup 2013]和Rust [Matsakis and Klock 2014]:当一个资源值被分配给一个新的内存位置时,之前保存它的位置必须无效。此外,资源类型只能由其声明模块中的过程创建或销毁。我们提出了一个可执行的字节码语言的资源,并证明它享有资源安全,守恒属性的程序值,类似于在物理世界中的质量守恒。

英文摘要:

Smart contracts are programs that implement potentially sophisticated transactions on modern blockchain platforms. In the rapidly evolving blockchain environment, smart contract programming languages must allow users to write expressive programs that manage and transfer assets, yet provide strong protection against sophisticated attacks. Addressing this need, we present flexible and reliable abstractions for programming with digital currency in the Move language [Blackshear et al. 2019]. Move uses novel linear [Girard 1987] resource types with semantics drawing on C++11 [Stroustrup 2013] and Rust [Matsakis and Klock 2014]: when a resource value is assigned to a new memory location, the location previously holding it must be invalidated. In addition, a resource type can only be created or destroyed by procedures inside its declaring module. We present an executable bytecode language with resources and prove that it enjoys resource safety, a conservation property for program values that is analogous to conservation of mass in the physical world.

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

↑