Proof-of-Work Consensus and Mining
The concept
Zcash secures its ledger using proof-of-work, the same broad family of consensus mechanism as Bitcoin, but with a different underlying algorithm and different design goals. Proof-of-work solves a specific problem for a decentralized network with no central authority: how do you decide, among thousands of independent computers, which version of the transaction history is the "real" one, and how do you make it expensive for anyone to rewrite history or spend the same coin twice? The answer is to require whoever proposes the next block to first solve a computationally expensive puzzle. Solving the puzzle costs real electricity and hardware time, so proposing a fraudulent or conflicting block becomes economically irrational — you'd be spending real resources on a block the rest of the network will reject.
Zcash originally adopted Equihash as its proof-of-work algorithm rather than Bitcoin's SHA-256. Equihash is a "memory-hard" puzzle: solving it efficiently requires large amounts of fast memory (RAM), not just raw computational throughput. The design goal was to favor commodity hardware (ordinary GPUs) over highly specialized ASIC chips, in the hope of keeping mining more accessible and the network's hashpower more broadly distributed across participants rather than concentrated among a few manufacturers of specialized equipment. In practice, as with most proof-of-work algorithms that reach significant value, Equihash-specific ASICs were eventually developed, somewhat narrowing — though not eliminating — that original accessibility gap; this dynamic is itself worth weighing when you assess the network's decentralization in Module 6.
Block timing is another area where Zcash diverged from Bitcoin as the protocol matured. At launch, Zcash targeted a 150-second block interval. The Blossom network upgrade, activated in 2019, cut that target to approximately 75 seconds, roughly doubling the pace of block production (and halving individual block rewards at the same time, so the overall issuance rate and the 21 million supply cap were preserved — a coordinated change, not simply "more money faster"). Faster blocks generally mean faster transaction confirmations for users, at the cost of a somewhat higher natural rate of short-lived forks that the network's consensus rules then resolve.
Miners who successfully produce a valid block receive a block reward made up of newly issued ZEC (subject to the halving schedule covered in Module 3) plus any transaction fees included in that block. Historically, a defined share of each block's issuance has also been routed to the Zcash Development Fund rather than to the miner — this does not come out of the miner's own pocket; it is a separate, protocol-defined split of the newly created coins, detailed fully in Lesson 3.4 and Lesson 3.4's companion lesson on the dev fund.
Worked example
Picture the network at a moment when thousands of miners worldwide are competing to produce the next block. Each miner assembles a candidate block from pending transactions (both transparent and shielded — miners include shielded transactions without being able to see their contents, since validity is checked via the attached zk-SNARK proof, not by reading the transaction's private fields) and repeatedly tries different values in an attempt to find a solution to the Equihash puzzle that meets the network's current difficulty target. The first miner to find a valid solution broadcasts their block; other nodes independently verify the solution is correct and that every transaction inside the block (transparent and shielded) is valid, then adopt that block as the new tip of the chain. The successful miner's reward — a mix of newly issued ZEC and transaction fees, minus the dev fund's defined share — is itself a normal transparent-address transaction, visible on the ledger like any other coinbase reward.
(See assets/pow-block-cycle.png — alt text: "Cycle diagram: miners assemble a candidate block, compete to solve the Equihash puzzle, the winner broadcasts the block, and all nodes independently verify both the puzzle solution and every transaction's validity before adopting it.")
Exercise
In two or three sentences, explain why a miner is economically discouraged from including an invalid transaction in a block they're trying to produce, even though the puzzle-solving cost is the same whether the block's contents are valid or not. Then explain, in one sentence, why a memory-hard algorithm like Equihash was chosen specifically to try to resist ASIC-based mining centralization, even though that goal has only been partially achieved over time.
Recap
- Zcash uses proof-of-work (originally Equihash, a memory-hard algorithm chosen to favor commodity hardware over specialized ASICs) to make rewriting history or double-spending economically irrational.
- The Blossom upgrade (2019) cut the target block interval from 150 to roughly 75 seconds, with reward sizes adjusted to preserve the same overall 21 million ZEC issuance schedule.
- Miners validate both transparent and shielded transactions — the latter via zk-SNARK proofs they can check without ever seeing the private transaction details — and are rewarded with newly issued ZEC plus fees, minus any defined dev fund share.
Resources
- Zcash documentation on consensus and mining: https://zcash.readthedocs.io/
- ZIP repository — ZIP-208, documenting the Blossom block-time change: https://zips.z.cash/
- Electric Coin Company blog — mining ecosystem and Equihash background: https://electriccoin.co/blog/
- Lesson: The Zcash Development Fund and Governance (Module 3) — full detail on how block reward issuance is split