agentleFS
rylsherdamz-rgbrylsherdamz-rgb/stellar-forge/skills/zk-proofs/SKILL.md

zk-proofs

Skill17 starsChanged 2 months agoMITView on GitHub

Zero-knowledge proofs and privacy patterns on Stellar. Covers Groth16 verification via BLS12-381 host functions (CAP-0059), Circom (on-chain verifiable today), Noir, and RISC Zero toolchains. Use when building privacy-preserving dApps, ZK verifier contracts, or wiring proving systems to Stellar.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Only Circom proofs can be verified on-chain today

    line 49
  2. Distinctive:

    Always test with small circuits first — proving is expensive

    line 52

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

ZK Proofs

When to Use

  • Privacy-preserving transactions on Stellar
  • On-chain ZK verification in Soroban contracts
  • Private voting, identity, or credential systems
  • Integrating Circom/Noir with Stellar

Toolchain Status

ToolOn-Chain VerifiableNotes
CircomYes (today)Groth16 via BLS12-381 host functions
NoirPending BN254Attestation pattern until CAP-74 lands
RISC ZeroPending BN254Attestation pattern for now

Groth16 Verification (Circom)

Uses BLS12-381 pairing check host functions (available since Protocol 20).

circuit.circom → r1cs → zkey → proof.json + public.json
                                   ↓
                        Soroban contract verifier
                        (import soroban-zk-verifier)

Strict Rules

  1. Only Circom proofs can be verified on-chain today
  2. Noir and RISC Zero use the off-chain attestation pattern until BN254 lands
  3. ZK verifier contracts must import soroban-zk-verifier crate
  4. Always test with small circuits first — proving is expensive

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.