Skip to content
Glossary

Hash

A hash is a fixed-length string of characters produced by running data through a cryptographic hash function. It acts as a unique digital fingerprint of that data.

How it works

A hash function takes an input of any size and returns an output of fixed length. The same input always yields the same hash, but even a tiny change to the input produces a completely different result, and the process cannot practically be reversed to recover the original data. These properties make hashes ideal for verifying integrity.

Why it matters

Hashes are fundamental to blockchains: each block is identified by its hash and references the previous block’s hash, which is what makes the chain tamper-evident. Proof-of-work mining is essentially a race to find an input that produces a hash meeting a target.

Example

Changing a single character in a block’s data would change its hash entirely, instantly signalling that the data was altered.

Hash: Frequently Asked Questions

What is a hash in cryptocurrency?
A hash is a fixed-length string of characters produced by running data through a cryptographic hash function. It acts as a unique digital fingerprint of that data. The function takes an input of any size and returns an output of fixed length. The same input always yields the same hash, making hashes ideal for verifying integrity.
Why are hashes important to blockchains?
Hashes are fundamental to blockchains. Each block is identified by its hash and references the previous block's hash, which is what makes the chain tamper-evident: changing an old block would change its hash and break every block after it. Proof-of-work mining is essentially a race to find an input that produces a hash meeting a target.
Can a hash be reversed to reveal the original data?
No, not practically. A core property of a cryptographic hash function is that it works in one direction: you cannot reverse the output to recover the original input. Even a tiny change to the input produces a completely different hash. These properties are exactly what make hashes useful for verifying that data has not been altered.