论文标题
智能合约的继承软件指标
Inheritance software metrics on smart contracts
论文作者
论文摘要
区块链系统最近获得了大量的吸引力,部分原因是分散的不可变化的经济活动调解的潜力。以太坊是一个重要的例子,它提供了执行称为智能合约的状态计算脚本的规定。这些智能合约类似于传统计划,但不变性是核心区分因素。鉴于它们的不变性和潜在的高货币价值,必须建立高质量的智能合约。传统上,软件指标是确定编程质量的重要工具。鉴于智能合约(以以太坊的坚固性编写)和面向对象(OO)编程之间的相似性,OO指标似乎适用。在本文中,我们从经验上评估了用于智能合约的基于继承的指标。我们采用这种重点是因为传统上,继承与一个更复杂的代码库相关联,我们认为,基于坚固的智能合约并非如此。在这项工作中,我们评估了以下假设:由于智能合约和OO计划的差异,使用基于继承的指标进行评估的相同解释可能不合适。
Blockchain systems have gained substantial traction recently, partly due to the potential of decentralized immutable mediation of economic activities. Ethereum is a prominent example that has the provision for executing stateful computing scripts known as Smart Contracts. These smart contracts resemble traditional programs, but with immutability being the core differentiating factor. Given their immutability and potential high monetary value, it becomes imperative to develop high-quality smart contracts. Software metrics have traditionally been an essential tool in determining programming quality. Given the similarity between smart contracts (written in Solidity for Ethereum) and object-oriented (OO) programming, OO metrics would appear applicable. In this paper, we empirically evaluate inheritance-based metrics as applied to smart contracts. We adopt this focus because, traditionally, inheritance has been linked to a more complex codebase which we posit is not the case with Solidity based smart contracts. In this work, we evaluate the hypothesis that, due to the differences in the context of smart contracts and OO programs, it may not be appropriate to use the same interpretation of inheritance based metrics for assessment.