Cryptography

The cryptographer’s toolkit

Cryptography sounds like arcane wizardry, but modern systems — Bitcoin included — are built from a surprisingly small set of simple, well-understood building blocks. Learn the handful of pieces and how they snap together, and the magic turns into engineering.

What a “primitive” is

A cryptographic primitive is a basic, trusted operation that does one job extremely well — think of it as a Lego brick. You don’t reinvent it; you combine it with others. Almost all of cryptography is assembling a few rock-solid primitives into something useful, not inventing new mathematics each time. That’s exactly why it can be trusted: each brick has been attacked by experts for decades.

The pieces you’ll meet

  • Hash functions — a one-way fingerprint of any data.
  • Keys — a secret you keep, and a public name derived from it.
  • Digital signatures — proving you authorised something without revealing the secret.
  • Encryption — scrambling a message so only the intended reader can unscramble it.

Bitcoin leans hardest on the first three, and — surprisingly to most people — barely touches the fourth.

One idea sits underneath all of them. Nearly every primitive rests on the same trick: a calculation that’s easy to do forwards and effectively impossible to undo. Easy to hash, impossible to un-hash. Easy to make a public key, impossible to work back to the private one. That one-way asymmetry is the beating heart of the whole field — and of Bitcoin’s security.

We’ll build the toolkit one brick at a time, starting with the one Bitcoin uses most and everything else builds on: the hash function.

Key takeaways

  • Cryptography is built from a few trusted ‘primitives’ — hashes, keys, signatures, encryption — combined like Lego bricks.
  • Nearly all of them rest on one idea: a calculation easy to do forwards but effectively impossible to reverse.

Check yourself

What is a cryptographic ‘primitive’?

What single idea underlies most cryptographic primitives?

Spotted an error or have feedback on this lesson? Suggest a correction ↗

Comments

Powered by Nostr — reply from any Nostr client, and zap the lesson over Lightning.