This study analyzes the application of code-generating Large Language Models in the creation of immutable Solidity smart contracts on the Ethereum Blockchain. Other works have previously analyzed Artificial Intelligence code generation abilities. This paper aims to expand this to a larger scope to include programs where security and efficiency are of utmost priority such as smart contracts. The hypothesis leading into the study was that LLMs in general would have difficulty in rigorously implementing security details in the code, which was shown through our results, but surprisingly generally succeeded in many common types of contracts. We also discovered a novel way of generating smart contracts through new prompting strategies.
翻译:本研究分析了代码生成型大型语言模型在以太坊区块链上创建不可变的Solidity智能合约中的应用。先前已有研究分析了人工智能的代码生成能力。本文旨在将研究范围扩展到安全性和效率至关重要的程序类型,例如智能合约。本研究基于的假设是,大型语言模型通常难以在代码中严格实现安全细节,这一假设通过我们的结果得到了证实;但令人惊讶的是,这些模型在许多常见合约类型中普遍取得了成功。我们还通过创新的提示策略发现了一种生成智能合约的新方法。