noir-developer
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseNoir Developer
Noir 开发者
Workflow
工作流程
- Compile () Noir program into ACIR.
nargo compile - Generate witness (or NoirJS execute) based on ACIR and user inputs.
nargo execute - Prove using ACIR and witness with the selected proving backend.
- Verify proof with the selected proving backend.
- 编译()Noir程序为ACIR格式。
nargo compile - 基于ACIR和用户输入生成见证(使用或NoirJS execute)。
nargo execute - 使用选定的证明后端,结合ACIR和见证生成证明。
- 使用选定的证明后端验证证明。
Task Patterns
任务模式
Environment
环境
If the environment is unsupported by (e.g. native Windows), guide the user to using GitHub Codespaces (https://noir-lang.org/docs/tooling/devcontainer#using-github-codespaces) or a supported setup (WSL, Docker, or VM).
nargo如果不支持当前环境(例如原生Windows系统),引导用户使用GitHub Codespaces(https://noir-lang.org/docs/tooling/devcontainer#using-github-codespaces)或受支持的环境配置(WSL、Docker或虚拟机)。
nargoPlan
规划
Define private inputs, public inputs (if any), and public outputs (if any) for each Noir program.
为每个Noir程序定义私有输入、公开输入(如有)和公开输出(如有)。
Project Creation
项目创建
When creating a Noir project, use or to scaffold it.
nargo newnargo init创建Noir项目时,使用或来搭建项目骨架。
nargo newnargo initCompilation
编译
Use (not ) for compilation; it is the maintained path.
nargonoir_wasm使用(而非)进行编译;这是官方维护的推荐方式。
nargonoir_wasmValidation
验证
Run to validate Noir implementations.
nargo test运行来验证Noir实现。
nargo testProving Backend
证明后端
Confirm the proving backend choice before implementation details. If the user selects Barretenberg, read .
references/barretenberg.md在开始实现细节前,确认证明后端的选择。如果用户选择Barretenberg,请阅读。
references/barretenberg.mdReferences
参考资料
- Run for the full list of commands.
nargo --help - Read https://noir-lang.org/docs/ for language syntax, dependencies, and tooling.
- Proving backends:
- For Barretenberg specifics, read .
references/barretenberg.md
- For Barretenberg specifics, read
- 运行查看完整命令列表。
nargo --help - 阅读https://noir-lang.org/docs/获取语言语法、依赖项和工具相关信息。
- 证明后端:
- 关于Barretenberg的详细信息,请阅读。
references/barretenberg.md
- 关于Barretenberg的详细信息,请阅读