Skip to main content
Important: We do not provide financial advice or custody funds. All transactions occur on third-party platforms.

Cryptography Primitives: The Building Blocks of Crypto

A focused tour of the cryptographic primitives that make blockchain possible: public key cryptography, digital signatures (ECDSA vs Schnorr), hash function properties, commitment schemes, and stealth addresses.

23 min · beginner · part of Blockchain: The Trust Machine

Why Cryptography Comes First

Cryptocurrency without cryptography is just an accounting database. Every meaningful property a blockchain has, immutability, ownership, censorship resistance, fungibility, comes from cryptographic primitives that were developed mostly in the 1970s and 1980s, decades before Bitcoin existed. To understand what blockchain actually does and where its limits are, you need a working mental model of these primitives. This lesson is a focused tour of the cryptography that matters most for cryptocurrency. We will trace the history of public key cryptography from the foundational papers of the 1970s, look at how digital signature schemes evolved from RSA to ECDSA to Schnorr, revisit the properties of hash functions in more depth, examine commitment schemes, and end with one of the most interesting recent developments in privacy-preserving cryptography: Vitalik Buterin's stealth address proposal published on January 20, 2023. You will not finish this lesson able to implement a cryptosystem from scratch. That is fine. The goal is conceptual: to know what each primitive does, why it exists, what guarantees it provides, and how it shows up in cryptocurrency systems you already use. With that foundation, future lessons on smart contracts, zero-knowledge proofs, and consensus will make far more sense.

Also in this lesson

  • The Birth of Public Key Cryptography
  • Digital Signatures: ECDSA vs Schnorr
  • Hash Functions Revisited
  • Commitment Schemes
  • Stealth Addresses: Privacy on Public Chains
  • Putting It Together
  • For Deeper Reading

Key terms

Symmetric cryptography
Cryptographic schemes where the same key is used for encryption and decryption. Requires both parties to share a secret in advance. AES is the most common modern symmetric cipher.
Asymmetric cryptography (public key cryptography)
Cryptographic schemes using two related keys: a public key for encryption or verification, and a private key for decryption or signing. Pioneered by Diffie and Hellman in 1976.
Diffie-Hellman key exchange
A protocol published in 1976 that allows two parties to derive a shared secret over a public channel. Foundational for modern internet security and stealth address constructions in crypto.
RSA
Rivest-Shamir-Adleman, the first practical public key cryptosystem (1977). Based on the difficulty of factoring large composite numbers. Still in widespread use but being replaced by ECC in many applications.
Elliptic curve cryptography (ECC)
A family of public key cryptosystems based on the mathematics of elliptic curves over finite fields. Provides strong security with much smaller keys than RSA. Used by Bitcoin (secp256k1), Ethereum, and many modern protocols.
ECDSA
Elliptic Curve Digital Signature Algorithm, the signature scheme used by Bitcoin pre-Taproot and by Ethereum externally-owned accounts. Standardized in 1992, adopted in NIST FIPS 186 (2000).
Schnorr signature
A digital signature scheme proposed by Claus-Peter Schnorr in 1989. Cryptographically simpler and more efficient than ECDSA. Activated in Bitcoin via Taproot (BIP-340) in November 2021.
Preimage resistance
A property of cryptographic hash functions: given an output, it should be infeasible to find any input that produces that output. Makes hash functions one-way.
Collision resistance
A property of cryptographic hash functions: it should be infeasible to find any two distinct inputs that hash to the same output. Critical for Merkle tree integrity.
Commitment scheme
A cryptographic primitive that lets a party commit to a value while keeping it hidden, with the ability to later reveal it. Hiding plus binding properties. Used in zero-knowledge proofs, sealed-bid auctions, HTLCs, and more.
Pedersen commitment
A specific commitment scheme that is additively homomorphic: commitments to two values can be added to produce a commitment to their sum. Used in Bulletproofs (Monero) and many privacy systems.
Stealth address
A privacy technique published by Vitalik Buterin in detail on January 20, 2023. Lets a recipient publish a single meta-address while every actual payment goes to a fresh unlinkable address. ERC-5564 standardizes this on Ethereum.

Continue this lesson — 7 more sections in the CryptoBipto app.

Open lesson

Educational only — not financial advice.