Trust Wallet

Hash

게시 2026년 6월 9일 · 업데이트 2026년 9월 25일
게시물 공유

요약

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?

  • Linking blocks — each block stores the hash of the previous block, forming the chain. Altering an old block would change its hash and break every block after it.

  • Transaction integrity — transactions are hashed so any change is instantly detectable.

  • Proof of Work mining — miners search for a block hash below a target value to validate the block.

  • Addresses — wallet addresses are often derived from hashes of public keys.

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.

Disclaimer: Content is for informational purposes and not investment advice. Web3 and crypto come with risk. Please do your own research with respect to interacting with any Web3 applications or crypto assets. Subject to our Terms of Service and Privacy Policy.

사용자가 직접 관리하는
가상자산 지갑

직접 보관하고, 직접 관리하세요. 몇 초 만에 시작할 수 있습니다.

다운로드
Trust Wallet app on iPhone