一句话:提出在 zkSolc 编译管线中建立 Solidity 源码、LLVM IR 与 zkEVM 字节码之间可追溯源映射的初步框架。
零知识兼容智能合约的调试与审计长期面临困难,其根源之一是 zkSolc 等编译器缺乏源映射支持。本文提出一个初步的源映射框架,在 zkSolc 编译管线内建立 Solidity 源代码、LLVM IR 与 zkEVM 字节码之间的可追溯性。该工作重点应对零知识编译中非线性变换以及面向证明的优化所引入的可追溯性挑战,从而使高层源码与底层字节码之间的对应关系得以恢复。论文以设计与初步评估为主,通过初步评估考察框架在 zkSolc 管线中的可行性与有效性。该框架为后续零知识智能合约的调试、审计及相关工具构建提供了基础。
Debugging and auditing zero-knowledge-compatible smart contracts remains a significant challenge due to the lack of source mapping in compilers such as zkSolc. In this work, we present a preliminary source mapping framework that establishes traceability between Solidity source code, LLVM IR, and zkEVM bytecode within the zkSolc compilation pipeline. Our approach addresses the traceability challenges introduced by non-linear transformations and proof-friendly optimizations in zero-knowledge compilation.