Reviewed Aug 2026
DE
BA-02 · LESSON 09

The Bitcoin cryptography map

KEY DEFINITIONS

Terms used in this lesson

SHA-256
A cryptographic hash function used throughout Bitcoin to produce fixed-size 256-bit digests.
HASH256
Bitcoin's name for applying SHA-256 twice to the same byte sequence.
Hash160
SHA-256 followed by RIPEMD-160, producing the 20-byte hash used by several Bitcoin spending conditions.
HMAC
Hash-based message authentication code: a keyed hash construction used to authenticate data or derive deterministic secret material.
HMAC-SHA512
HMAC using SHA-512; BIP32 uses it to derive a master key and chain code from seed material.
PBKDF2
A password-based key-derivation function used by BIP39 to turn mnemonic words and an optional passphrase into a seed.
ECDSA
Elliptic Curve Digital Signature Algorithm, the signature scheme used by pre-Taproot Bitcoin outputs.
Schnorr signature
Bitcoin’s Taproot signature scheme, whose algebra supports compact verification and advanced multi-party signing.
RIPEMD-160
A 160-bit cryptographic hash function used in Bitcoin’s HASH160 construction.
BIP32
The Bitcoin standard for deriving a tree of child keys from one extended root key.
BIP39
A standard that converts entropy into mnemonic words and derives a seed using an optional passphrase.
BIP340
The Bitcoin Improvement Proposal specifying Schnorr signatures for the secp256k1 curve.
Taproot
A Bitcoin output and spending design that can combine a public-key path with privately committed alternative scripts.
SegWit
Segregated Witness: a Bitcoin upgrade that separates authorization data from the transaction identifier and introduces versioned witness programs.
Witness
Signatures, scripts, or other data supplied to satisfy a Bitcoin output’s spending condition.
BIP143
The Bitcoin Improvement Proposal that defines the version-zero SegWit transaction signature digest used by native P2WPKH and P2WSH spends.
Sighash
The exact transaction digest and signature mode that determine which fields a Bitcoin signature authorizes.

Connect SHA-256, HASH256, HASH160, HMAC-SHA512, PBKDF2, secp256k1, ECDSA, Schnorr, tagged hashes, and Merkle commitments to the exact job each performs.

35 min Difficulty 1/5 Not started

Loading lesson visuals...

01

Learn the idea

Bitcoin uses several cryptographic functions because each solves a different problem. Hashes commit and identify, keyed hashes derive secret-dependent material, password stretching derives a seed from a mnemonic, curve multiplication creates public keys, signatures authorize messages, and Merkle trees compress many commitments into one root. The primitives are related by exact byte flows rather than by a general idea of encryption.

GUIDED EXPLANATION1/5 ideas inspected
1

Map the hash families

SHA-256 produces one 32-byte digest. HASH256 applies SHA-256 twice for transaction and block identifiers and checksums. HASH160 applies SHA-256 then RIPEMD-160 for 20-byte key and script commitments.

Inspect each idea before the worked example.
The worked example follows the explanation

Inspect every idea above to open it.

Important distinctionBitcoin hashes or encrypts everything with SHA-256.

Bitcoin combines hashes, keyed derivation, curve operations, signatures, and structured commitments. None of the named hash functions encrypts data.

02
FINISH LEARNING FIRST

The questions unlock after every required learning activity

Inspect every guided idea, open the worked example, rebuild its mechanism, and complete the deterministic lesson tool. Your progress is saved automatically.