BR Academy
0%
How Zcash Works·Lesson 9 of 29·9 min

Full Nodes and Transaction Validation

The concept

A full node is software that downloads, stores, and independently verifies the entire Zcash blockchain against the network's consensus rules — it is the thing that actually makes "trustless" true in practice. Without full nodes run by many independent operators, "the network says this transaction is valid" would just mean "miners say so," and users would have to trust miners rather than verify for themselves. Running a full node means you don't have to trust anyone's claim about the state of the ledger; your own software checks every rule itself.

Zcash has historically had two independent full-node implementations, a deliberate choice for resilience: zcashd, the original C++ implementation maintained by Electric Coin Company and built on the Bitcoin Core codebase, and Zebra, a newer implementation written in Rust and maintained by the Zcash Foundation. Having two independently written implementations of the same consensus rules is a meaningful security property: a bug in one codebase is far less likely to also exist in the other, and if the two implementations ever disagreed about whether a block or transaction is valid, that disagreement itself would surface a critical issue that a single-implementation network might instead silently mishandle.

For transparent transactions, validation is conceptually simple and identical to Bitcoin: a full node checks that each input references a real, previously unspent output; that the spender's signature is valid; and that outputs don't sum to more than inputs (plus the allowed newly issued coins, for coinbase transactions). For shielded transactions, a full node cannot read the sender, receiver, or amount — so instead it validates the attached zk-SNARK proof (covered in Lesson 2.2), checks that the transaction's "nullifier" (a unique, anonymized marker proving a specific note is being spent) has not already appeared elsewhere in the chain — which is exactly how double-spending is prevented in the shielded pool without revealing which note was spent — and confirms the proof's public claims are internally consistent (for example, that value isn't being created from nothing). None of this requires decrypting the transaction's private contents.

Running your own full node, rather than trusting a third-party wallet or block explorer's view of the chain, is the strongest form of "don't trust, verify" available to an ordinary user, and it is also the foundation on which the rest of the network relies: miners build blocks, but it is the independent community of full nodes that decides, by choosing what software and what rules to run, which chain is actually valid. This is also why a network upgrade (Overwinter, Sapling, Blossom, Heartwood, Canopy, NU5, NU6, and others) requires broad adoption by node operators and miners alike before activation — a new rule only has force if enough of the network enforces it.

It's worth being precise about what "running a full node" costs in practice, since that's part of evaluating how realistic widespread independent verification actually is. A full node needs to store the entire history of the chain and continuously validate new blocks as they arrive, which requires meaningfully more disk space, bandwidth, and ongoing maintenance than a lightweight wallet does. This is exactly why most ordinary users run a light client instead (covered in Module 4) and rely on someone else's full node for day-to-day use — a real, practical trade-off between maximum verification and convenience that this course does not gloss over.

Worked example

Suppose a wallet shows you that your incoming shielded payment of some amount has "6 confirmations." Behind that simple number is a chain of independent verification: your wallet (which may itself be a "light client" trusting a full node it talks to) relies on a full node that downloaded every block since genesis, verified every proof-of-work solution, verified every transparent signature, and verified every shielded transaction's zk-SNARK proof and nullifier uniqueness — for every single transaction in every one of those six blocks, not just yours. If a malicious actor tried to insert an invalid shielded transaction (for example, one with a forged proof claiming to spend a note it didn't actually own), every honest full node on the network would reject that block outright, and miners who build on top of an invalid block waste their mining effort, since the rest of the network will not accept it.

Now consider what happens if zcashd and Zebra ever disagreed about a specific block's validity — for example, due to a subtle bug in one implementation's handling of an edge case in nullifier checking. Node operators running the disagreeing implementation would end up on a different chain than operators running the other, immediately visible as a chain split. That visibility is itself valuable: it surfaces the disagreement quickly, rather than letting a single flawed implementation silently misvalidate the ledger for the entire network with nothing to catch the error.

(See assets/full-node-validation.png — alt text: "Diagram of a full node receiving a new block, running proof-of-work verification, transparent signature checks, and shielded zk-SNARK and nullifier checks, before accepting the block as valid.")

Exercise

Write two or three sentences explaining why having two independently written full-node implementations (zcashd and Zebra) is a stronger security property than having only one, even if both are open source and both are audited. Then explain, in one sentence, what a nullifier accomplishes for a shielded transaction that a plain, visible "spent" flag could not accomplish without breaking privacy. Finally, write one sentence describing the practical cost trade-off (storage, bandwidth, maintenance) that leads most ordinary users to rely on a light client instead of running their own full node.

Recap

  • Full nodes independently verify every transaction and block against consensus rules, which is what makes Zcash "trustless" rather than merely "miners say so."
  • zcashd (Electric Coin Company, C++) and Zebra (Zcash Foundation, Rust) are two independently written full-node implementations, a deliberate resilience measure that would surface, rather than silently hide, a consensus-rule disagreement.
  • Shielded transactions are validated via zk-SNARK proofs and nullifier uniqueness checks (preventing double-spends) without any node ever decrypting sender, receiver, or amount — though running a full node yourself carries real storage, bandwidth, and maintenance costs most ordinary users instead offload to a light client.

Resources

  • zcashd repository — Electric Coin Company's original full-node implementation: https://github.com/zcash/zcash
  • Zebra repository — the Zcash Foundation's independent Rust full-node implementation: https://github.com/ZcashFoundation/zebra
  • Zcash documentation on running a full node: https://zcash.readthedocs.io/
  • Lesson: Wallet Options (Hardware, Mobile, Desktop, Custodial) (Module 4) — the light-client trade-off introduced here in more practical detail

Module quiz

8 questions · pass mark 70% · retake any time

1. What are the three shielded address 'pools' Zcash has introduced, in order, and what distinguishes the newest one?
2. What does a unified address (u-address) do?
3. In the 'where's Waldo' analogy for a zero-knowledge proof, what does the cardboard with a hole cut out represent?
4. What does 'succinct' mean in zk-SNARK, and why does it matter for a blockchain?
5. Which of Zcash's four transaction shapes hides sender, receiver, AND amount simultaneously?
6. Why can a predictable shield-then-deshield pattern undermine privacy, according to Lesson 2.3?
7. What proof-of-work algorithm did Zcash originally use, and what was its design goal?
8. Why does Zcash maintain two independent full-node implementations, zcashd and Zebra?