2000 character limit reached
Efficacy of Various Large Language Models in Generating Smart Contracts (2407.11019v2)
Published 28 Jun 2024 in cs.SE, cs.AI, and cs.CL
Abstract: This study analyzes the application of code-generating LLMs 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.