arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2604.26727cs.SEcs.PL
收藏

比较智能合约范式:安全性和开发者体验的初步研究

Comparing Smart Contract Paradigms: A Preliminary Study of Security and Developer Experience

University of Cagliari(卡利亚里大学);University College London(伦敦大学学院)

Matteo Vaccargiu, Andrea Pinna, Maria Ilaria Lunesu, Giuseppe Destefanis

AI总结:

本文通过对比Solidity和Move两种智能合约语言,发现Move在安全性和代码规模方面有显著优势,但开发者学习曲线较陡,研究为语言选择提供了初步依据。

摘要:

智能合约漏洞已造成数十亿美元的财务损失,引发了关于编程语言范式能否减少安全开销的问题。尽管像Solidity这样的命令式语言要求开发者手动实现安全检查,而以资源为导向的语言如Move则在类型系统中编码安全保证。我们呈现了一项初步的混合方法研究,分析了由同一开发团队用Solidity和Move实现的功能等价合约对,并辅以11名同时熟悉两种语言的开发者的调查。定量分析显示,Move将显式安全开销减少了60%(安全检查密度:6.7% vs. 16.8%,p=0.002,Cohen's d=-1.75),以代码大小增加47%(p=0.002,d=1.90)为代价,同时保持循环复杂度相同。开发者调查显示,Move的学习难度中等但安全性信心更高(中位数=6/7,11名中的10人超过中性),尽管生态系统成熟度存在差距,55%的开发者更倾向于使用Move进行安全关键应用。这些初步发现表明,以资源为导向的范式将安全从运行时验证转移到编译时保证,但采用需要在学习和工具方面进行投资。受控比较为范式对智能合约开发的影响提供了初步证据,为语言选择决策提供了信息,并识别了改进开发者资源的机会。

英文摘要:

Smart contract vulnerabilities have caused billions in financial losses, raising questions about whether programming language paradigms can reduce security overhead. While imperative languages like Solidity require developers to manually implement security checks, resource-oriented languages like Move encode safety guarantees in type systems. We present a preliminary mixed-methods study analyzing 12 functionally-equivalent contract pairs implemented in both Solidity and Move by the same development team, complemented by a survey of 11 developers experienced in both languages. Quantitative analysis reveals that Move reduces explicit security overhead by 60\% (security check density: 6.7% vs. 16.8%, p=0.002, Cohen's d=-1.75) at the cost of 47% larger code size (p=0.002, d=1.90), while maintaining identical cyclomatic complexity. Developer surveys show moderate learning difficulty but higher safety confidence in Move (Median=6/7, 10 of 11 above neutral), with 55% preferring Move for security-critical applications despite ecosystem maturity gaps. These preliminary findings suggest resource-oriented paradigms shift security from runtime validation to compile-time guarantees, though adoption requires investment in learning and tooling. The controlled comparison provides initial evidence for paradigm effects on smart contract development, informing language selection decisions and identifying opportunities for improved developer resources.

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

↑