English

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

Cryptography and Security 2026-04-23 v4 Software Engineering

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.

Keywords

Cite

@article{arxiv.2602.00667,
  title  = {zkCraft: Prompt-Guided LLM as a Zero-Shot Mutation Pattern Oracle for TCCT-Powered ZK Fuzzing},
  author = {Rong Fu and Jia Yee Tan and Youjin Wang and Ziyu Kong and Zeli Su and Zhaolu Kang and Shuning Zhang and Xianda Li and Kun Liu and Simon Fong},
  journal= {arXiv preprint arXiv:2602.00667},
  year   = {2026}
}

Comments

36 pages, 12 figures, 9 tables