Home / How Zcash zero-knowledge proofs work

How the math works

How Zcash zero-knowledge proofs work

A shielded payment hides who sent it, who got it, and how much. The network still gets a short proof that the payment is valid. Here is what that proof actually shows, and which proving system Zcash uses today.

Last reviewed 1 December 2026.

What the proof shows

When you send A private Zcash payment. The sender, receiver, and amount stay hidden. ZEC, your wallet builds a zero-knowledge proof and puts it in the transaction. The proof shows these things are true, without revealing the private details. The statements are specified in the Zcash protocol specification (the Sapling Spend and Output statements, and the Orchard Action statement).

The network can check all of that and still not learn the sender, the receiver, or the amount. People call this kind of proof a zk-SNARK. You can ignore the name.

Five steps, tied to a payment

Both of Zcash's current proving systems follow the same basic steps. Here they are, using one shielded payment as the example.

One shielded payment, in five steps

Hidden on the public chain: sender, receiver, amount

  1. Write the rules

    Your wallet turns a valid payment into a list of equations: the note is in the tree, you may spend it, the nullifier is right, and the values add up.

  2. Turn them into polynomials

    Those equations become polynomials, a compact way to write many checks at once. This step is called arithmetization.

  3. Commit, without showing secrets

    The wallet publishes short fingerprints of those polynomials. The fingerprints bind the secret values so they cannot be swapped later.

  4. Check a random point

    If two polynomials of limited degree agree at a random point, they are almost certainly the same. The random point is derived from the proof itself, so no back-and-forth is needed.

  5. A short proof goes on the chain

    Nodes verify the proof and accept the payment. They still do not learn the sender, the receiver, or the amount.

The same pipeline is used for a Sapling spend or output and for an Orchard or Ironwood action. The proof system and the proof size differ, as in the comparison below.

Two names from the research papers show up in step 4. The A fact about polynomials: if two polynomials of limited degree agree at a randomly chosen point, they are almost certainly the same polynomial. lemma is why a check at one random point is enough, with overwhelming probability. The Halo 2 book uses it in its soundness argument. A way to turn a back-and-forth proof into a single message. The random challenge is derived from the proof itself, so it can sit in a transaction. is why no one has to send a challenge back to your wallet. The “random” point is derived from the proof, so the whole thing can be written into a block.

Sapling vs Orchard proof system

Sapling

Proof system
Groth16
Curve
BLS12-381
Trusted setup
Yes. Powers of Tau, then a Sapling MPC.
Proof size
192 bytes for each Spend or Output.
Live since
29 October 2018 (Sapling).

Orchard and Ironwood current proofs

Proof system
Halo 2
Curve
Pallas and Vesta
Trusted setup
No structured reference string.
Proof size
4,992 bytes for one Action (2,720 + 2,272 × n, aggregated).
Live since
Orchard: 31 May 2022 (NU5). Ironwood reuses Halo 2 (NU6.3, 28 July 2026).
Sizes are from ZIP 225 and ZIP 229. Ironwood, the current shielded pool, reuses the Orchard Action encoding and the Halo 2 proof system. NU7 did not change that.

Sapling uses Groth16, and needed a trusted setup

Sapling activated on 29 October 2018 at block 419,200 (z.cash). Its proofs are A pairing-based zk-SNARK by Jens Groth (2016). Proof size is constant, but it needs a trusted setup. proofs on the BLS12-381 curve. Each Spend proof and each Output proof is encoded as 192 bytes (ZIP 225: byte[192 * nSpendsSapling] and byte[192 * nOutputsSapling]). That is three compressed group elements: 48 + 96 + 48 bytes. A commonly quoted 128-byte Groth16 figure is for a different curve, BN254, which Sapling does not use.

Groth16 needs a A one-time ceremony that produces public parameters. If someone kept the secret leftovers, they could forge proofs.. The parameters are a structured reference string. If anyone kept the hidden structure, they could create fake proofs and counterfeit ZEC (ZIP 224). Zcash split the work into two multi-party ceremonies:

In each phase, the parameters are safe if at least one participant was honest and destroyed the randomness they sampled. You cannot check that from the finished parameters alone. That leftover risk is a large part of why Zcash later moved new shielded funds to a proving system with no trusted setup.

Sapling addresses still start with zs1, and Sapling funds can still move. New private payments from a current wallet go into Ironwood, not Sapling. See Zcash address types.

Orchard and Ironwood use Halo 2, with no trusted setup

NU5 activated on 31 May 2022 at block 1,687,104 and enabled the Orchard shielded protocol (z.cash). Orchard uses The proving system used by Orchard and Ironwood. No trusted setup. It runs on the Pallas and Vesta curves.. ZIP 224 says the point of the new protocol was a proving system that is “amenable to recursion and does not require an SRS” (a structured reference string). The official NU5 page puts it the same way: Halo removed the need for the trusted setup.

Orchard runs on the Pallas/Vesta curve cycle. Pallas is the application curve, used for the protocol itself. Vesta is the circuit curve, used to build and check the proof (ZIP 224). Halo 2 proofs are aggregated: ZIP 225 and ZIP 229 fix the encoded size at 2720 + 2272 * nActions bytes, which is 4,992 bytes for one Action. That is larger than a 192-byte Sapling proof. The trade is the missing ceremony, and a design that can support recursive proofs later.

Ironwood, the current shielded pool, arrived with NU6.3 on 28 July 2026 at block 3,428,143. ZIP 229 is direct: “The Orchard Action encoding and the Halo 2 proof system are reused unchanged.” The shared circuit gained one extra public bit, used to stop cross-address transfers inside the old Orchard pool. The proof size stayed the same. New private funds go into Ironwood. Orchard no longer accepts new value; existing Orchard coins can still leave through a turnstile.

What NU7 changed, and what it did not

NU7 activated on 6 November 2026 at block 3,543,405 (ZIP 259). It did not change the proof system, and it introduced no new transaction format. Version 5 and version 6 transactions stay valid. Shielded proofs are still Groth16 for Sapling and Halo 2 for Orchard and Ironwood.

What NU7 did change is around those proofs: blocks target 25 seconds instead of 75, there are limits on how many shielded actions a block can hold, 60% of transaction fees are removed from circulation, and version 4 transactions became invalid, which left remaining Sprout funds unspendable. Details are on the NU7 upgrade page.

What the proof does not hide

A zero-knowledge proof hides the sender, receiver, and amount of a fully shielded payment. It does not hide everything around that payment.

Further reading

For a general walk-through of how a zero-knowledge proof is built, Ankita Singh's article How a ZK proof actually works: from your secret to a 128-byte proof is a clear starting point. Her 128-byte Groth16 example is on the BN254 curve. Sapling uses Groth16 on BLS12-381, so each Sapling Spend or Output proof is 192 bytes, not 128.

Questions

What is a trusted setup?

Groth16, the proving system used by Sapling, needs a structured reference string: public parameters with hidden structure. If anyone kept the secret leftovers, often called toxic waste, they could forge proofs and create counterfeit ZEC. Zcash built those parameters in two multi-party ceremonies, Powers of Tau and then a Sapling-specific MPC. The parameters are safe if at least one participant in each ceremony was honest and destroyed their randomness. Halo 2, used by Orchard and Ironwood, does not need this kind of setup.

What is Halo 2?

Halo 2 is the proving system used by the Orchard shielded protocol and, since NU6.3, by Ironwood as well. It uses the Pallas and Vesta curves and does not need a trusted setup. It arrived with NU5 on 31 May 2022. Ironwood reused the same proof system; it did not replace Halo 2.

Is Zcash's math broken by quantum or AI?

Not today, on the evidence we can cite. Groth16 and Halo 2 both rely on elliptic-curve discrete logarithms. ZIP 2005 says a future adversary who could break those (with a large enough quantum computer, or otherwise) would be able to steal or forge shielded funds. That is a known long-term risk, not a report that it has happened. Ironwood notes are built so a later recovery protocol could move them if the current protocols had to be turned off. The ZIP is explicit: that change does not make today's protocol secure against quantum adversaries, and funds left in Sprout, Sapling, or Orchard would not be recoverable that way. There is no primary-source confirmation that AI has broken Groth16 or Halo 2. Treat dramatic social-media claims as unverified until Zcash cryptographers or a reviewed paper say otherwise. Longer answer at zec.guide/is-zcash-quantum-safe.

Do I need to understand this to use Zcash?

No. A current wallet such as Zodl builds the proof for you. What you do need to get right is the address type: use a shielded unified address for private payments, and shield coins that arrive on a transparent t1 address.

Sources

Last reviewed 1 December 2026. Block times and rewards come from the ZIPs and the Zebra release notes.

Next stepHow to shield ZECMove coins that arrived on a transparent address into a private balance.