Network and blocks
What is Scrypt?
Scrypt is a memory-hard hashing algorithm used by Litecoin and Dogecoin.
- Coins
- Litecoin, Dogecoin and others
- Memory per hash
- 128 KB with Litecoin’s settings
- Settings
- N = 1024, r = 1, p = 1
- Machines rated in
- GH/s or MH/s
- Efficiency in
- J/GH or J/MH
What it means in practice
It was chosen to need more memory per hash than SHA-256, and dedicated ASICs now exist for it. Scrypt machines are rated in MH/s or GH/s and their efficiency in J/MH or J/GH. Many Scrypt miners mine Litecoin and Dogecoin at the same time through merged mining.
Why memory is part of the work
Scrypt first fills a table of pseudo-random data, then reads it in an order that depends on what it finds. A processor without the table has to recompute entries again and again, so memory is needed at full speed. The design comes from protecting passwords against special hardware.
Litecoin chose small settings. N is the number of table entries, r their size and p how many tables run side by side. With 1024, 1 and 1 the table is 128 × 1024 × 1 = 131,072 bytes. That was enough to slow graphics cards at first, and small enough that chips with built-in memory followed.
What is inside a Scrypt ASIC
Each core carries its own small memory next to the mixing logic, and a large part of the chip is that memory. A single hash involves thousands of steps, which explains why the numbers look modest beside SHA-256: gigahashes in place of terahashes.
Heat is spread more evenly than on a Bitcoin chip, and speed depends strongly on how fast the on-chip memory runs. In use, such a machine looks and sounds like any other ASIC of its size.
Efficiency without mistakes
Example figures: 9.5 GH/s at 3,420 W. Divide by 9.5 for 360 J/GH, or by 9,500 for 0.36 J/MH. They are the same efficiency. In a day the machine uses 82.08 kWh.
To compare with a second machine, bring both into the same unit first. A factor of a thousand hides easily in a table that mixes the two.
Two coins, two schedules
Most Scrypt machines work for Litecoin and Dogecoin together. Litecoin finds a block every 2.5 minutes and halves every 840,000 blocks. Dogecoin finds one every minute and pays a fixed 10,000 coins. Their prices and difficulties move separately, so the split of your income between them changes from month to month.
Look at both lines on the pool’s page. If one coin is missing, its payout address may not be set.
Some Scrypt pools and dashboards show share difficulty on a scale 65,536 times larger than the Bitcoin-style one. If a figure looks far too high for the machine, that is probably why. Pay is worked out on the pool’s own scale, so nothing needs changing.
Worked example
A Scrypt machine drawing 3,360 W at 16 GH/s (16,000 MH/s) runs at 3,360 / 16 = 210 J/GH, or 0.21 J/MH.
Example figures, not live data.
Common mistakes
- Comparing J/MH on one page with J/GH on another.
- Counting the power twice for two merge-mined coins.
- Pointing a Scrypt machine at a SHA-256 pool.
Common questions
What coins use Scrypt?
Litecoin and Dogecoin are the main ones. Bellscoin, Pepecoin and several smaller coins use it too and can be merge-mined with Litecoin.
What do you mine Scrypt with?
A Scrypt ASIC such as the Antminer L series, ElphaPex DG or Goldshell Mini-DOGE machines. Graphics cards and PCs stopped being competitive years ago.
Is Scrypt harder than SHA-256?
Each hash takes far more work. That does not make a Scrypt coin harder or easier to mine for income.
What is a good Scrypt hashrate?
Full-size machines run in the gigahash range, home models in hundreds of megahashes or a few gigahashes. Read J/GH beside it.
Can a Scrypt ASIC mine Bitcoin?
No. Its chips do Scrypt only.