Zirgen:用于特定领域语言的编译器
Zirgen: Compiler for a Domain-Specific Language

原始链接: https://github.com/risc0/zirgen

## Zirgen:为 RISC Zero 构建算术电路 Zirgen 是一种编译器,用于一种专门的语言——也称为“zirgen”,旨在为 RISC Zero 证明系统创建算术电路。虽然大多数 RISC Zero 开发使用 Rust 和 RISC-V zkVM,但 Zirgen 允许直接与证明系统集成,以优化性能和构建自定义加速器。 目前仍在开发中,Zirgen 使开发者能够构建高度高效的组件,甚至整个虚拟机,这些组件可以通过证明组合集成到 RISC Zero 生态系统中。 未来的开发包括与 Circom 集成,允许验证 Circom 电路见证,并在 zkApp 中实现递归。Zirgen 编译为 Rust、C++ 和递归 VM 谓词,为应用程序开发提供灵活性。

黑客新闻 新 | 过去 | 评论 | 提问 | 展示 | 招聘 | 提交 登录 Zirgen: 一种特定领域语言的编译器 (github.com/risc0) 3点 由 0xkato 1小时前 | 隐藏 | 过去 | 收藏 | 讨论 指南 | 常见问题 | 列表 | API | 安全 | 法律 | 申请YC | 联系 搜索:
相关文章

原文

Zirgen is a compiler for a domain-specific language, also called "zirgen", which creates arithmetic circuits for the RISC Zero proof system.

For the most part, users of RISC Zero should be writing their zkApps in Rust and using our RISC-V zkVM rather than building them directly in Zirgen. Sometimes, however, it is necessary or desirable to write parts of an application as an arithmetic circuit to integrate directly with our proof system and achieve better performance. In fact, we have an upcoming version of the zkVM circuit written in Zirgen! Zirgen will make it possible to build accelerators for important parts of your applications, or even to build entire other VMs that integrate into the RISC Zero ecosystem through proof composition. With that said, it's still a work in progress and has quite a few rough edges.

Getting Started

Language Overview

We also have an integration with Circom in the works -- this will make it possible to generate recursion circuit programs that verify witnesses for arbitrary Circom circuits. This can be found here.

graph TD;
    A[Zirgen] --> B[Zirgen Compiler]
    C[Circom] --> B
    B --> D[Rust code]
    B --> E[C++ code]
    B --> F[Recursion VM predicates]
Loading
联系我们 contact @ memedata.com