Cryptography

Cryptography is the use of mathematical techniques to secure data, verify ownership, and protect transactions on blockchain networks.

cryptography glossary banner image

What is Cryptography (in a Blockchain Context)?

Throughout this series, cryptography has quietly done most of the heavy lifting. It's what made HashingHashingHashing is the process of converting data into a fixed-length code using a cryptographic function, ensuring data integrity and security.Keep learning possible in our very first article, what allows Blockchain NodesBlockchain NodesA node is simply a computer that participates in a blockchain network. Each node stores a copy of the blockchain and helps verify transactions.Keep learning to verify each other's work without re-checking everything from scratch, and what underpins every Blockchain consensus mechanismsBlockchain consensus mechanismsA consensus mechanism is a method for validating transactions and securing a blockchain without relying on a central authority.Keep learning we've examined since. This article steps back to look at cryptography itself; not as a single tool, but as a small family of interlocking techniques that, together, make decentralized trust possible in the first place.

It's worth being upfront about scope: cryptography as a field is centuries old and extraordinarily deep. This article isn't attempting to cover all of it; only the specific pieces that show up, directly and repeatedly, in how BlockchainBlockchainThink of blockchain as a public notebook that everyone owns a copy of. Whatever gets written in it is permanent and visible to all.Keep learning actually function.

Two Jobs, Two Tools

Blockchain cryptography is, broadly, solving two distinct problems, and it uses two different categories of tool to do so.

The first problem is integrity: how do you prove that a piece of data hasn't been altered? We've already covered the answer to this in detail; hashing, specifically SHA-256, which we explored thoroughly in our very first article.

The second problem is ownership and authorization: how do you prove that a transaction was genuinely authorized by the person who owns the funds, without that person needing to hand over anything that could be stolen, copied, or forged? This is where a different branch of cryptography comes in; public-key cryptography; and it's the piece of the puzzle this article focuses on most closely, since we haven't yet given it the dedicated treatment it deserves.

Public-Key Cryptography: The Core Idea

Public-key cryptography (also called asymmetric cryptography) relies on a mathematically linked pair of keys: a public key, which can be shared with absolutely anyone, and a Private KeysPrivate KeysPrivate keys are secret cryptographic codes that give users full control over their crypto assets and are used to sign and authorize transactions.Keep learning, which must never be shared with anyone at all. The two keys are generated together, through a specific mathematical relationship, such that:

  • Anything encrypted with the public key can only be decrypted with the matching private key
  • A message "signed" with the private key can be verified by anyone using the corresponding public key; without that verifier ever needing access to the private key itself

This second property; signing and verifying; is the one that matters most for blockchain transactions, and it's worth walking through carefully, because it solves a problem that seems almost paradoxical at first: proving you authorized something, to a stranger who has no prior relationship with you, without revealing the one piece of information that would let them (or anyone else) impersonate you afterward.

Digital Signatures in Practice

When Joe wants to send Sarah BitcoinBitcoinBitcoin is a decentralized digital currency that enables secure peer-to-peer transactions without relying on a central authority.Keep learning, he isn't typing in a password or logging into an account. Instead, his wallet software uses his private key to generate a digital signature; a unique piece of data, mathematically derived from both his private key and the specific details of that transaction (amount, recipient, timestamp). This signature is then attached to the transaction and broadcast to the network.

Every node on the network can take that signature, Joe's public key (which is openly associated with his wallet address), and the transaction details, and run a verification calculation that confirms, with mathematical certainty, two things at once: that the transaction was genuinely authorized by whoever controls that private key, and that the transaction details haven't been altered since it was signed. Critically, none of this requires Joe's private key to ever be transmitted, exposed, or even known by anyone but Joe himself.

This is the cryptographic backbone of every blockchain transaction covered throughout this series. There's no password to steal, no central server to hack, and no account to take over in the traditional sense; only a private key, which exists solely on the device (or in the memory) of whoever controls it.

Elliptic Curve Cryptography: The Math Behind the Keys

The specific mathematical technique Bitcoin and EthereumEthereumEthereum is a decentralized blockchain platform that runs smart contracts and dApps, using its native cryptocurrency (ETH) for transactions and fees.Keep learning use to generate these key pairs is called Elliptic Curve Cryptography (ECC); and more specifically, a particular curve called secp256k1.

Without diving into the full mathematics, the underlying principle mirrors the one-way logic we explored with SHA-256 hashing in our first article: it's computationally trivial to generate a public key from a private key, but, for all practical purposes, impossible to reverse the process and derive someone's private key from their public key. The "easy direction" involves a single, well-defined mathematical operation; the "hard direction" would require solving what's known as the elliptic curve discrete logarithm problem; a problem with no known efficient solution, even accounting for significant advances in computing power.

To put the scale of that asymmetry in perspective, a Bitcoin private key is, at its core, simply a very large random number; selected from a range of roughly 2²⁵⁶ possible values, an unimaginably large space, far exceeding the estimated number of atoms in the observable universe. You can see this relationship play out directly, without ever touching a real wallet or real funds, using the Bitaddress.org paper wallet generator (best used offline, with an internet connection disabled, for safety) or the more visual Ian Coleman BIP39 Tool, both of which let you generate a private key and watch the corresponding public key and wallet address derived from it in real time; a genuinely useful way to see the relationship between the two without any real financial risk involved.

Wallets, Seed Phrases, and Key Management

This is also a good place to clear up a common point of confusion: a CryptocurrencyCryptocurrencyCryptocurrency, often called “crypto,” is a form of digital currency that uses cryptography (advanced math and code) to keep it secure.Keep learning "Crypto WalletsCrypto WalletsA crypto wallet doesn’t store coins like a piggy bank. Instead, it keeps keys that let you access your crypto on the blockchain.Keep learning" doesn't actually store any currency at all. The currency itself only ever exists as entries on the blockchain's ledger, as established in our very first article. What a wallet actually stores; and protects; is the private key (or keys) needed to sign transactions on your behalf.

Because a raw private key is an intimidating, error-prone string of characters to write down or back up reliably, most modern wallets use a standard called BIP39 to convert a private key into a Seed phrasesSeed phrasesSeed phrases are a set of words that back up and restore a crypto wallet, giving full access to its funds if the private keys are lost.Keep learning; typically 12 or 24 ordinary words, drawn from a fixed list of 2,048 possibilities, that can be used to mathematically regenerate the exact same private key (and, from it, an entire tree of associated wallet addresses) at any time. This is why seed phrases are treated with such extreme caution in the cryptocurrency community: anyone who obtains your seed phrase has obtained your private key in every meaningful sense, and with it, complete and irreversible control over any funds associated with it.

It's worth being direct about the practical implication here: there is no password reset, no customer support line, and no central authority capable of restoring access if a private key or seed phrase is lost, nor reversing a transaction if one is stolen. This is the direct, unavoidable trade-off of removing a central authority from the system in the first place; the same DecentralizationDecentralizationDecentralization is the distribution of control and decision-making across a network instead of a single central authority.Keep learning that protects users from a bank freezing their account also means there's no bank to call if something goes wrong.

Symmetric Cryptography: A Brief Contrast

It's worth briefly distinguishing public-key (asymmetric) cryptography from symmetric cryptography, since the terms are sometimes conflated. Symmetric cryptography uses a single shared key for both encrypting and decrypting data; fast and efficient, but requiring that the key somehow be securely shared between both parties in advance, which is precisely the kind of trusted, pre-existing relationship a Blockchain NetworkBlockchain NetworkA blockchain network is a system of computers connected to each other that follow the same set of rules to record, share, and validate transactions.Keep learning can't assume exists between, say, two strangers transacting for the first time. This is why blockchains rely on asymmetric, public-key cryptography for transaction signing specifically; it's the approach built for a world of strangers with no pre-shared secrets and no central authority to broker that trust on their behalf.

Hashing, Revisited: The Other Half of the Picture

It's worth briefly reconnecting this article back to our very first one, since hashing and public-key cryptography work together constantly throughout a blockchain's operation, even though they solve different problems.

A Bitcoin wallet address, for instance, isn't actually the public key itself; it's a hashed and encoded version of it, run through SHA-256 and a related algorithm called RIPEMD-160, then formatted using an encoding scheme called Base58Check, which adds a built-in checksum specifically designed to catch typos before they result in funds being sent to an invalid or mistyped address. This is a good illustration of how the various cryptographic tools covered across this series rarely operate in isolation; hashing, digital signatures, and key derivation are layered together, each handling a specific, narrow job, to produce a system that's secure as a whole.

Looking Ahead: Quantum Computing

No discussion of blockchain cryptography is complete without at least acknowledging the long-term question hanging over the field: quantum computing. Sufficiently powerful quantum computers, should they ever be built at the necessary scale, are theorized to be capable of solving the elliptic curve discrete logarithm problem far more efficiently than classical computers; which would, in theory, threaten the security of the public-key cryptography described in this article.

It's worth keeping this in proportion: most credible experts agree that quantum computers capable of this remain a meaningful distance away, both technically and in terms of available qubits, and the cryptography research community has been actively developing post-quantum cryptographic algorithms in anticipation, several of which are already being studied for potential future adoption by major blockchain networks. For a non-speculative, technically grounded overview of where this research currently stands, the National Institute of Standards and Technology's Post-Quantum Cryptography project is a genuinely authoritative, regularly updated public resource on the topic.

Bringing It Together

Cryptography is, in a very real sense, the substance that everything else in this series has been built on top of. To summarize:

  • Blockchain cryptography solves two distinct problems: integrity (handled by hashing, covered in our first article) and ownership/authorization (handled by public-key cryptography, the focus of this one)
  • Public and private key pairs allow transactions to be signed and verified without ever exposing the private key itself
  • Bitcoin and Ethereum use Elliptic Curve Cryptography, specifically the secp256k1 curve, to generate these key pairs
  • Wallets don't store currency — they store and protect private keys, typically represented as a human-readable seed phrase
  • There is no central recovery mechanism for lost keys or stolen funds; a direct trade-off of the decentralization this entire series has explored
  • Quantum computing poses a long-term theoretical risk to current cryptographic methods, one the field is already actively preparing for through post-quantum research

With this article, the full cryptographic foundation beneath everything covered so far in this series; blocks, nodes, networks, Blockchain ProtocolBlockchain ProtocolA blockchain protocol is the set of rules and standards that govern how a blockchain network operates, validates transactions, and reaches consensus.Keep learning, and every consensus mechanism examined; is now in view: hashing proves data hasn't changed, and public-key cryptography proves who's authorized to change it in the first place.

Recap

Cryptography uses mathematics to secure information, verify authenticity, and prevent tampering. It enables secure digital communication and is the foundation of blockchain, cryptocurrencies, and digital ownership.

Tag System

The tags found in our glossary are there to help you better understand presented definitions. They showcase how certain concepts integrate and interact within the ecosystem.

Rectangular tags signal a concept related to BlockchainBlockchainThink of blockchain as a public notebook that everyone owns a copy of. Whatever gets written in it is permanent and visible to all.Keep learning as a technology. Whereas rounded tags represent CryptocurrencyCryptocurrencyCryptocurrency, often called “crypto,” is a form of digital currency that uses cryptography (advanced math and code) to keep it secure.Keep learning in more of a financial aspect. You’ll also see rectangular dashed tags for Web3Web3Web3 is the idea of a decentralized internet powered by blockchain.Keep learning and  rounded dashed tags for DeFiDeFiDeFi stands for Decentralized Finance. It refers to a collection of applications and platforms built on blockchain that allow people to transact without banks.Keep learning specifically.

Learn more about the relationship between all the tags and their respective concept with our Free Interactive Courses.

FAQ

No. It’s used everywhere, including websites (HTTPS), messaging apps, passwords, banking systems, and secure storage.

They gain full control over the associated assets or identity. There’s usually no way to reverse this, which is why key security is critical.

In theory yes, but modern cryptography is designed so breaking it would require impractical amounts of time and computing power.

Not necessarily. It ensures security and authenticity, but privacy depends on how systems are designed and used.

Hash functions intentionally discard information, making it computationally infeasible to reconstruct the original input.

It’s expected to remain secure for many years, but future technologies like quantum computing may require new cryptographic methods.

Not deeply, but understanding basic concepts like private keys and signatures helps prevent costly mistakes.

Standards are developed by researchers, institutions, and open-source communities and adopted based on trust and proven security.

More Blockchain fundamentals

oracles glossary cover image

Oracles

A crypto oracle is a service that feeds external real-world data into blockchains so smart contracts can react to off-chain events.

Keep learning
blockchain glossary cover image

Blockchain

Think of blockchain as a public notebook that everyone owns a copy of. Whatever gets written in it is permanent and visible to all.

Keep learning