Back to search

University of North Texas

A Trustworthy Framework of AI-Driven Smart Contracts Development with Integrated Quality Assurance

Abstract

dc:description

Smart contracts automatically enforce agreement terms on blockchain platforms, but their immutable nature makes errors permanent and costly. Developing reliable smart contracts for real world business applications such as real estate investment and management requires both blockchain expertise and domain-specific knowledge, yet no existing approach integrates automated construction with systematic quality assurance. The emergence of Large Language Models (LLMs) offers a path toward automating this development, but it also introduces new risks: when requirements serve as direct inputs to code-generating models, defects in the specification propagate into every generated artifact. This dissertation proposes a trustworthy framework for automating smart contract development using generative AI throughout the software development lifecycle. The research addresses three questions: (1) How can generative AI techniques be used to automatically construct smart contract systems that are functionally correct, guarantee transaction fairness, and ensure data privacy? (2) How can generative AI techniques be leveraged to ensure the correctness, fairness, and privacy of automatically generated smart contracts? and (3) How can rigorous verification and validation be systematically integrated across all phases of the automated system construction lifecycle? The trustworthy framework consists of an automated system construction process with integrated quality assurance at every phase. This process follows the software engineering lifecycle, including requirements analysis, design, implementation, and verification and validation. The system is continuously refined through an iterative process that leverages multiple coordinated LLMs and retrieval-augmented generation with integrated domain knowledge. System requirements are collaboratively generated by human experts with the assistance of generative AI tools and are subsequently validated by these tools. The complex algorithms and business rules specified in the requirements are translated into the formal language Alloy and formally verified against desired properties expressed in temporal logic using a model checking tool. Based on the validated requirements, test cases are automatically generated according to selected test adequacy criteria using generative AI. The verified requirements then guide the generation of system designs and implementations. The implementations are tested using the generated test cases, and the resulting test outcomes are used to identify defects, guide corrections, and further enhance the system. A smart contract–based real estate investment system was developed and systematically evaluated as a case study to validate the proposed framework and address the research questions. The system progressed through three iterative versions, with experiments producing novel techniques and more streamlined processes. The resulting case study provides a reusable blueprint for developing similar systems.

Degree

thesis:*
Grantor dc:publisher
University of North Texas
Year dc:date
2026

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Zhao, Wenqian
Contributors dc:contributor
  • Chen, Jiangping
  • O'Connor, Brian C.
  • Ding, Junhua
  • Monticino, Michael G.

Subjects

dc:subject × 3

Rights

dc:rights
Statement dc:rights
  • Public
  • Zhao, Wenqian
  • Copyright
  • Copyright is held by the author, unless otherwise noted. All rights Reserved.
Language dc:language
English

Identifiers

dc:identifier.*
Identifier
local-cont-no: submission_5112
ark: ark:/67531/metadc2652594

Chain of custody

source
Harvested from
University of North Texas
Base URL
digital.library.unt.edu/oai/
Last updated
2026-11-19
Source record
OAI-PMH GetRecord
citation

Zhao, Wenqian. A Trustworthy Framework of AI-Driven Smart Contracts Development with Integrated Quality Assurance. University of North Texas, 2026. https://digital.library.unt.edu/ark:/67531/metadc2652594/