Skip to definition

Mining Advanced

SHA-256

In brief A cryptographic hash function used twice in Bitcoin mining; Litecoin mining uses Scrypt but still uses SHA-256 elsewhere.

Also referred to as: SHA256 · secure hash algorithm 256

Full explanation

A cryptographic hash function producing a 256-bit digest. Bitcoin mining uses a double-SHA-256 construction; Litecoin proof of work uses Scrypt. Litecoin nevertheless uses SHA-256-based functions elsewhere, including transaction and block identification.

For exampleA Bitcoin mining device advertises SHA-256 hash power, while Litecoin mining hardware advertises Scrypt hash power.

Common mistakeAssuming Litecoin does not use SHA-256 anywhere simply because its proof-of-work algorithm is Scrypt.

Put it into practice: Model Scrypt & merged-mining margins →

Primary sources: NIST FIPS 180-4: SHA-256 and its 256-bit digest Litecoin Core 0.21.5.8: SHA-256-based hashing used by Litecoin LitecoinPool: share accounting and payout FAQ

Definition checked:

Quick answers about SHA-256

What does SHA-256 mean in Litecoin?
A cryptographic hash function used twice in Bitcoin mining; Litecoin mining uses Scrypt but still uses SHA-256 elsewhere. A cryptographic hash function producing a 256-bit digest. Bitcoin mining uses a double-SHA-256 construction; Litecoin proof of work uses Scrypt. Litecoin nevertheless uses SHA-256-based functions elsewhere, including transaction and block identification.
What is a common mistake with SHA-256?
Assuming Litecoin does not use SHA-256 anywhere simply because its proof-of-work algorithm is Scrypt.
How is SHA-256 applied in practice?
A Bitcoin mining device advertises SHA-256 hash power, while Litecoin mining hardware advertises Scrypt hash power. You can explore this hands-on with our Model Scrypt & merged-mining margins.
Jarosław Wasiński
Editor-in-chief · Financial markets and Litecoin education

Editor-in-chief of Litecoin.watch and founder of MyBank.pl. His published work covers foreign exchange, financial education and Litecoin. On Litecoin.watch, his remit includes editorial direction, source transparency and the practical guides and research published by the site.

Background, selected work and editorial responsibility →

Founder of MyBank.pl Financial education and market analysis Named editorial responsibility