Papers1 provider · 1 record
October 21, 2025· 2025 IEEE 36th International Symposium on Software Reliability Engineering (ISSRE)
conference-paper
Open access

Code Generation of Smart Contracts with LLMs: A Case Study on Hyperledger Fabric

Abstract

Hyperledger Fabric (HF) is currently the one that made blockchain and smart contracts accessible to industries, providing highly customizable solutions for many enterprise use cases. Despite this, programmers are often discouraged from implementing smart contracts due to the high learning curve and security risks of naive smart contract implementations. At the same time, the advent of Large Language Models (LLMs) for code generation led to new possible scenarios such as creating new smart contract applications starting from natural language, allowing to reduce costs and development times. This paper investigates the maturity of LLMs for the code generation of HF smart contracts. In particular, we (i) generate smart contracts written in Go for HF starting from natural language descriptions, (ii) select state-of-the-art static analyzers of Go program, and (iii) perform a quality and security assessment of the generated smart contracts. Our empirical results show current LLMs do not produce high-quality smart contracts, and a relevant effort to debug and patch contracts containing bugs and possible vulnerabilities.

Community

0 comments
Use Connect Wallet in the navigation

No discussion yet

Be the first to share a question or observation.