计算机科学 > 密码学与安全
[提交于 2025年1月25日]
标题:A Proof-Producing Compiler for Blockchain Applications
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:CairoZero is a programming language for running decentralized applications (dApps) at scale. Programs written in the CairoZero language are compiled to machine code for the Cairo CPU architecture and cryptographic protocols are used to verify the results of execution efficiently on blockchain. We explain how we have extended the CairoZero compiler with tooling that enables users to prove, in the Lean 3 proof assistant, that compiled code satisfies high-level functional specifications. We demonstrate the success of our approach by verifying primitives for computation with the secp256k1 and secp256r1 curves over a large finite field as well as the validation of cryptographic signatures using the former. We also verify a mechanism for simulating a read-write dictionary data structure in a read-only setting. Finally, we reflect on our methodology and discuss some of the benefits of our approach.
提交历史
来自:Jeremy Avigad[v1] 2025年1月25日 星期六 00:31:47 UTC