Course contentsShow
← Security
Lesson 245 of 3,0526. Advanced and Emerging CryptographyFree lesson

Trusted Setup and Universal Reference Strings

Understand the trusted setup ceremony, toxic waste, and why it matters for zk-SNARK security.

Trusted Setup and Universal Reference Strings

What you'll learn: Why zk-SNARKs require a one-time "ceremony" that generates secret randomness—and what happens if that randomness leaks.

The Ceremony That Makes zk-SNARKs Possible

Many zk-SNARK systems (like those using the Groth16 protocol) require a trusted setup ceremony before the system can operate. This ceremony generates public parameters called a Universal Reference String (URS) or Common Reference String (CRS)—essentially mathematical values that both the prover and verifier need to create and check zero-knowledge proofs.

During setup, random values are generated and used to create the public parameters. However, the randomness itself must be destroyed immediately—this discarded randomness is called "toxic waste."

Why Toxic Waste Matters

Here's the critical security issue: if anyone keeps a copy of the toxic waste (the secret randomness), they can forge fake proofs that appear valid. Imagine a digital voting system where someone with toxic waste could "prove" votes they never received, or a cryptocurrency where they could create fake transaction proofs.

Analogy: Think of it like creating a master key for a lock, then using that key to create the lock itself. If the master key isn't destroyed, anyone holding it can open any lock created by that ceremony—forever.

Making Trusted Setup Safer

Modern ceremonies use multi-party computation where dozens or hundreds of participants contribute randomness. The setup is secure as long as at least one participant honestly destroys their share of toxic waste. This dramatically reduces the risk of compromise.

Some newer systems (like zk-STARKs) avoid trusted setup entirely, though that's beyond our current scope.

Key Takeaway: Trusted setup generates public parameters for zk-SNARKs, but the secret randomness (toxic waste) must be destroyed—if it leaks, attackers can forge proofs indefinitely.