Download Trust Wallet
Home  >  Glossary  >  Hash

Hash

Updated on: Jun 9, 2026
Share post
In Brief

A hash is a fixed-length string of characters produced by running data through a cryptographic hash function; in blockchain, hashes uniquely fingerprint blocks and transactions and secure the chain against tampering.

Hash

What Is a Hash?

A hash is the output of a cryptographic hash function — an algorithm that takes any input (text, a file, a block of transactions) and produces a fixed-length string of characters. The same input always produces the same hash, but even the tiniest change to the input produces a completely different output.

In blockchain, hashes act like unique digital fingerprints for data. They link blocks together, secure transactions, and make tampering immediately detectable. Bitcoin, for example, uses the SHA-256 hash function.

How Does Hashing Work?

  1. Data is fed into a hash function such as SHA-256.

  2. The function processes the data and outputs a fixed-length hash (e.g. 64 hexadecimal characters for SHA-256).

  3. The same input always yields the same hash — it is deterministic.

  4. The process is one-way: you cannot reverse a hash back into the original data.

  5. Changing even one character of the input produces a totally different, unpredictable hash (the "avalanche effect").

Key Properties of Cryptographic Hashes

Property What It Means
DeterministicSame input always gives the same output
Fixed lengthOutput size is constant regardless of input size
One-wayCannot reverse the hash to recover the input
Avalanche effectA tiny input change drastically changes the output
Collision resistantExtremely hard to find two inputs with the same hash

How Are Hashes Used in Blockchain?

Why Hashes Make Blockchains Tamper-Proof

Because each block's hash depends on its contents and the previous block's hash, the blocks form an unbreakable chain. To alter a past transaction, an attacker would have to recompute the hashes of that block and every subsequent block faster than the rest of the network — practically impossible on a large network.

Hashes and Trust Wallet

Every transaction you make in Trust Wallet is identified by a unique transaction hash (TXID), which you can use to look up its status on a block explorer. As a non-custodial wallet, Trust Wallet relies on the same cryptographic principles — hashing and digital signatures — to keep your funds secure across 100+ blockchains, with only you in control of your private keys.

Simple and convenient
to use, seamless to explore

Download Trust Wallet