Skip to main content

Search...

Popular searches

SHA-256

SHA-256 is a cryptographic hash function that produces a fixed 256-bit output from any input. In blockchain, Bitcoin uses it for proof-of-work mining, block hashing, and transaction IDs.

Blockchain
Updated: Mar 19, 2026
Also known as: SHA256 secure hash algorithm

What Is a SHA-256?

A SHA-256 is a cryptographic hash function from the SHA-2 family. It generates a fixed-length 256-bit (32-byte) output, known as a hash or digest, from input data of any size. This output serves as a unique digital fingerprint for the input.

SHA-256 processes input by first padding it to a multiple of 512 bits. It then divides the data into 512-bit blocks. Each block undergoes 64 rounds of compression using bitwise operations, rotations, and modular addition with predefined constants. The final hash combines results from all blocks. For example, the SHA-256 hash of "hello" is 2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824.

In cryptocurrency and blockchain, SHA-256 ensures data integrity and security. Bitcoin applies double SHA-256 (SHA-256(SHA-256(block header))) in proof-of-work mining to find valid nonces below the difficulty target. Blockchains use it for block hashes, transaction IDs, and Merkle tree roots. It also secures wallet addresses and digital signatures.

SHA-256 offers key properties:

  • Deterministic: Same input always yields the same hash.
  • One-way: Easy to compute hash from input, but infeasible to reverse.
  • Collision-resistant: Computationally hard to find two inputs with identical hashes.
  • Avalanche effect: Tiny input changes produce vastly different hashes.
These make it ideal for secure applications.

GeneralCryptocurrency

Cryptocurrency is a digital or virtual currency secured by cryptography, operating on decentralized blockchain networks to enable secure, peer-to-peer transactions.

Read full definition
BlockchainBitcoin

Bitcoin (BTC) is the first decentralized cryptocurrency, launched in 2009. It uses blockchain technology for secure, peer-to-peer digital transactions without intermediaries.

Read full definition
BlockchainMining

Mining uses computational power to solve puzzles, validate transactions, and add blocks to a blockchain. Miners earn cryptocurrency rewards for securing the network.

Read full definition
BlockchainMerkle Tree

A Merkle Tree is a binary tree structure used in blockchain to efficiently verify data integrity, where each leaf node is a hash of data and non-leaf nodes are hashes of child nodes.

Read full definition
BlockchainAvalanche

Avalanche (AVAX) is a scalable layer-1 blockchain platform that achieves high throughput and sub-second transaction finality using its novel proof-of-stake consensus.

Read full definition

Real-World Examples

Example 1: Bitcoin Proof-of-Work Mining

Miners repeatedly apply double SHA-256 to a block header. They increment the nonce until the hash meets the difficulty target. This process secures the Bitcoin network.

Example 2: Transaction IDs

Bitcoin generates a transaction ID with double SHA-256 on the serialized transaction data. Users track transfers using this 64-character hex string, like 4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b.

Example 3: Block Hashes

Blockchains link blocks via SHA-256 hashes of headers. Each new block includes the previous block's hash. This creates an immutable chain.

Example 4: Hardware Wallet Firmware Verification

Ledger provides SHA-256 checksums for firmware updates. Users hash the downloaded file and match it to confirm integrity and avoid malware.

BlockchainBitcoin

Bitcoin (BTC) is the first decentralized cryptocurrency, launched in 2009. It uses blockchain technology for secure, peer-to-peer digital transactions without intermediaries.

Read full definition
BlockchainMining

Mining uses computational power to solve puzzles, validate transactions, and add blocks to a blockchain. Miners earn cryptocurrency rewards for securing the network.

Read full definition
TransactionNonce

A nonce is a sequential number in a blockchain transaction that ensures transactions from the same account process in order and prevents replay attacks.

Read full definition
HardwareLedger

Ledger is a brand of hardware wallets that securely store cryptocurrency private keys offline, such as the Ledger Nano series.

Read full definition

Ready to Choose a Secure Wallet?

Use our tools to find the right hardware wallet for your needs.