360 Secure SkillHub
360 安全技能中心

Noir Developer

面向 Noir(.nr)零知识程序开发:先规划私有/公开输入与公开输出,用 nargo new/init 脚手架项目,nargo compile 编译为 ACIR,nargo execute 生成 witness,再按用户选定的证明后端生成与验证证明;不支持 nargo 的环境(如原生 Windows)建议改用 Codespaces、WSL、Docker 或虚拟机。

jp4g
jp4g
热度 75.21
最近更新 2026-05-17 11:07:27
分类:开发依赖:代码执行 / 读写文件应用场景:代码生成 / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add noir-developer
Metadata
name
noir-developer
description
Develop Noir (.nr) codebases. Use when creating a project or writing code with Noir.

Noir Developer

Workflow

  1. Compile (nargo compile) Noir program into ACIR.
  2. Generate witness (nargo execute or NoirJS execute) based on ACIR and user inputs.
  3. Prove using ACIR and witness with the selected proving backend.
  4. Verify proof with the selected proving backend.

Task Patterns

Environment

If the environment is unsupported by nargo (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).

Plan

Define private inputs, public inputs (if any), and public outputs (if any) for each Noir program.

Project Creation

When creating a Noir project, use nargo new or nargo init to scaffold it.

Compilation

Use nargo (not noir_wasm) for compilation; it is the maintained path.

Validation

Run nargo test to validate Noir implementations.

Proving Backend

Confirm the proving backend choice before implementation details. If the user selects Barretenberg, read references/barretenberg.md.

References

  • Run nargo --help for the full list of commands.
  • Read https://noir-lang.org/docs/ for language syntax, dependencies, and tooling.
  • Proving backends:
    • For Barretenberg specifics, read references/barretenberg.md.