Network and blocks
What is Equihash?
Equihash is a memory-hard proof-of-work algorithm used by Zcash and a few other coins.
- Coin
- Zcash
- Settings on Zcash
- n = 200, k = 9
- One solution
- 512 numbers, 1,344 bytes
- Counted in
- solutions per second (Sol/s)
- Zcash block time
- 75 seconds
What it means in practice
Miners solve a puzzle that needs a fair amount of memory, and hashrate is quoted in solutions per second (Sol/s), with ASIC miners in kSol/s. Zcash ASICs are built for the Equihash 200,9 settings.
Why the numbers look different
A Zcash machine’s 840 kSol/s is not a small number next to a Bitcoin machine’s 270 TH/s: it counts finished puzzles, not single hashes. Compare Zcash machines with each other, in watts per kSol/s.
The two figures after the name set how much memory a puzzle takes. A machine built for 200,9 does not mine coins that use other settings.
A puzzle about birthdays
In a room of 23 people two probably share a birthday. Equihash uses the same effect. The miner makes a list of about two million hashes from the header and looks for pairs whose first 20 bits are equal. It combines the pairs, looks for matches in the next 20 bits, and goes on like that for nine rounds.
What is left at the end is a set of 512 numbers whose hashes cancel each other out. That set is the solution. Keeping the list takes memory, and throwing it away means starting over. This is what “memory-hard” means here.
From solution to block
A solution by itself wins nothing. It is added to the header, and the whole is hashed. Only if that hash lies below the target is it a block, or a share at the pool’s easier target. A nonce gives close to two solutions on average, so solutions and nonces are counted separately.
Checking is quick: the node repeats 512 hashes and sees whether they cancel. The price is size. Each Zcash header carries 1,344 extra bytes, while a Bitcoin header has 80 in total.
What the two settings do
n is the length of the hash that must cancel, and k the number of rounds. With 200 and 9 each round compares 200 ÷ 10 = 20 bits. Other coins chose 144,5 or 192,7, which need much more memory for one puzzle. A machine’s memory is laid out for one setting, so it cannot change.
Some coins also add a word of their own to the hash, called personalization. The pool tells the machine, if the firmware supports it.
Comparing two machines
Divide watts by kSol/s. Example figures: 800 kSol/s at 2,600 W is 3.25 W per kSol/s, and 400 kSol/s at 1,500 W is 3.75. The first uses about 13% less energy for the same work.
Then look at the share of the network. Zcash finds 1,152 blocks a day. Example figures: 800 kSol/s on a network of 12 GSol/s is 0.0067%, or about 0.077 blocks a day, one in 13 days on average. A pool turns that into a daily amount.
Use the same power mode for both, since makers quote several.
Common mistakes
- Reading kSol/s as thousands of hashes and calling the machine slow.
- Buying a machine for a coin that uses 144,5 because both say Equihash.
- Sending payouts to a shielded address at a pool that pays only to transparent ones.
Common questions
Which coins use Equihash 200,9?
Zcash is the main one. Some smaller coins use it too.
Can a graphics card mine Zcash?
It can run the algorithm, and dedicated machines do far more work for the same power.
Who created Equihash?
It was presented by two researchers of the University of Luxembourg in 2016 and adopted by Zcash for its launch the same year.
Is Zcash mining private?
The reward is created publicly and can be shielded afterward. What a pool pays you depends on the address types it supports.
What is the difference between Sol/s and I/s?
I/s counts runs of the solver. Each run finds about two solutions, so Sol/s is close to double.