Hash

A fixed-length output from a one-way function that uniquely represents data, helping secure blockchain transactions, blocks, and mining.

A hash is the fixed-length output produced by a hashing algorithm, which takes any input data and converts it into a seemingly random string of characters. In crypto, hashes act like digital fingerprints for transactions, blocks, and other data. While small changes in the input create a completely different output, the same input always produces the same hash. Importantly, hashing is designed to be one-way, meaning you cannot feasibly reverse a hash to recover the original data.

How hashes secure blockchains

Blockchains rely on cryptographic hash functions to protect data integrity. Each block typically includes the hash of the previous block, linking blocks together into a chain. If someone tries to alter a past transaction, the altered data would produce a new hash, which would no longer match the stored references in later blocks. This mismatch makes tampering obvious and forces an attacker to redo the work needed to rebuild subsequent blocks, which is prohibitively difficult in well-secured networks.
In proof-of-work systems, hashing is also central to mining. Miners repeatedly hash block data with a changing value, often called a nonce, searching for a hash that meets network rules. This process makes it costly to propose new blocks, helping discourage spam and fraudulent rewrites of history.

Transaction hashes and real-world use

A transaction hash, often called a Tx hash, is a unique identifier created by hashing a transaction’s data. Wallets and block explorers use Tx hashes to let users verify that a transfer was broadcast, confirmed, and recorded on-chain. For example, when you send cryptocurrency, the Tx hash is the reference you share to prove the transaction exists and to track its confirmation status.
Hashes matter because they provide a practical way to verify data integrity, connect blocks securely, and enable transparent auditing across decentralized networks.