zkCraft: Prompt-Guided LLM as a Zero-Shot Mutation Pattern Oracle for TCCT-Powered ZK Fuzzing

📅 2026-01-31
📈 Citations: 0
Influential: 0
📄 PDF
🤖 AI Summary
This work addresses the challenge of semantic inconsistency errors in zero-knowledge (ZK) circuits, which arise from the tight coupling between witness computation and constraint definitions. To enable efficient debugging, the authors propose a novel method that combines R1CS-aware localization with Row-Vortex polynomial encoding to identify and edit candidate constraints. Instead of repeatedly invoking expensive constraint solvers, the approach leverages a Violation Interactive Oracle Proof (IOP) to verify constraint violations. Notably, it introduces a prompt-guided large language model (LLM) as a zero-shot oracle for mutation patterns, generating algebraically verifiable fault templates. Evaluated on real-world Circom circuits, the method effectively detects both under-constrained and over-constrained errors, significantly reducing solver invocation overhead and false positive rates, thereby enhancing the scalability and reliability of ZK circuit debugging.

Technology Category

Application Category

📝 Abstract
Zero-knowledge circuits enable privacy-preserving and scalable systems but are difficult to implement correctly due to the tight coupling between witness computation and circuit constraints. We present zkCraft, a practical framework that combines deterministic, R1CS-aware localization with proof-bearing search to detect semantic inconsistencies. zkCraft encodes candidate constraint edits into a single Row-Vortex polynomial and replaces repeated solver queries with a Violation IOP that certifies the existence of edits together with a succinct proof. Deterministic LLM-driven mutation templates bias exploration toward edge cases while preserving auditable algebraic verification. Evaluation on real Circom code shows that proof-bearing localization detects diverse under- and over-constrained faults with low false positives and reduces costly solver interaction. Our approach bridges formal verification and automated debugging, offering a scalable path for robust ZK circuit development.
Problem

Research questions and friction points this paper is trying to address.

zero-knowledge circuits
semantic inconsistencies
constraint faults
witness computation
circuit constraints
Innovation

Methods, ideas, or system contributions that make the work stand out.

zero-knowledge circuits
proof-bearing search
Row-Vortex polynomial
LLM-guided mutation
Violation IOP
🔎 Similar Papers
No similar papers found.
R
Rong Fu
University of Macau
J
Jia Yee Tan
Renmin University of China
Wenxin Zhang
Wenxin Zhang
University of Chinese Academy of Sciences
Deep LearningSelf-supervised LearningGraph neural networks
Y
Youjin Wang
Renmin University of China
Z
Ziyu Kong
Fudan University
Z
Zeli Su
Minzu University of China
Z
Zhaolu Kang
Peking University
Shuning Zhang
Shuning Zhang
Tsinghua University
HCIUsable Privacy and SecurityAI
X
Xianda Li
University of Bologna
K
Kun Liu
University of Southampton
Simon Fong
Simon Fong
Associate Professor, University of Macau
Data Mining and Optimization