Menu

What does it take to write your first zero-knowledge proof?
πŸ“°

What does it take to write your first zero-knowledge proof?

DEV Community: rustΒ·ArushΒ·14 days ago
#mREaviv3
#devtorust#devto#dev#circuit#hello
Long article (971 words) β€” no AI summary yet.
Reading 0:00
15s threshold

TL;DR

You'll write a four-line Noir circuit, generate a real zero-knowledge proof, and verify it.

Along the way you'll learn the difference between public and private inputs, and what "circuit", "witness" and "backend" actually mean.

Three posts of theory. It's time to make an actual proof.

We'll use Noir , a Rust-flavored language for writing ZK circuits. I picked it for the start of this series because it reads like normal code, which makes it the gentlest on-ramp I've found.

Intuition: a circuit is a checklist, not a program

A normal program computes an answer. A ZK circuit checks an answer. You don't ask it "what's the result?". Instead you hand it a filled-in form and it says βœ… or ❌.

Think of a customs officer with a checklist. You (the prover) show up with your paperwork already filled in. The officer doesn't fill anything in for you; they just tick boxes.…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.