Private Keys

Private keys are secret cryptographic codes that give users full control over their crypto assets and are used to sign and authorize transactions.

private keys glossary banner image

What are Private Keys?

Our CryptographyCryptographyCryptography is the science of securing information using mathematical techniques to protect data, ensure privacy, and verify authenticity.Keep learning article introduced the basic relationship between public and private keys, and briefly touched on 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 and 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. Given how much practical responsibility ultimately rests on a single private key; quite literally, complete and irreversible control over whatever funds are associated with it; the topic deserves a closer, more practical look of its own: what a private key actually is, the different ways it can be generated and stored, and the real-world Blockchain SecurityBlockchain SecurityBlockchain security is the protection of blockchain networks and assets against attacks, fraud, and vulnerabilities using cryptography and consensus mechanisms.Keep learning practices that separate a safely held key from one that's quietly waiting to be lost or stolen.

What a Private Key Actually Is

Strip away the wallet software and the user interface, and a BitcoinBitcoinBitcoin is a decentralized digital currency that enables secure peer-to-peer transactions without relying on a central authority.Keep learning or EthereumEthereumEthereum is a decentralized blockchain platform that runs smart contracts and dApps, using its native cryptocurrency (ETH) for transactions and fees.Keep learning private key is, at its core, nothing more than a very large random number; for Bitcoin, a number somewhere between 1 and approximately 2²⁵⁶, generated within the constraints of the secp256k1 curve discussed in our cryptography article.

That's genuinely it. There's no file format requirement, no registration process, and no database entry anywhere recording that this particular number belongs to you. Anyone who happens to land on the exact same number; through extraordinarily improbable luck, a flawed random number generator, or a targeted brute-force attempt; would have just as much legitimate cryptographic claim to whatever funds are associated with the public key and address derived from it. The entire security model rests on that number being selected from a space so large that genuinely random guessing is, for all practical purposes, never going to succeed (a point we touched on briefly when comparing the size of the private key space to the number of atoms in the observable universe).

This is also why the quality of randomness used to generate a private key matters enormously. A private key generated using a weak or predictable random number source isn't drawing from that full, effectively infinite space; it's drawing from a much smaller, more guessable one, and history has already shown that attackers actively scan for funds held in keys generated this way. Reputable wallet software uses cryptographically secure random number generators specifically designed to avoid this failure mode.

From Raw Number to Usable Key: Formats

A raw 256-bit number is unwieldy to work with directly, so private keys are typically represented in a more manageable format.

Hexadecimal is the rawest common representation; a 64-character string using digits 0–9 and letters a–f.

Wallet Import Format (WIF) is a more compact, Bitcoin-specific encoding that adds a checksum (to catch typos) and a version byte (to indicate things like whether the corresponding address should be compressed or uncompressed), then encodes the whole thing using Base58; the same alphabet referenced in our cryptography article for wallet addresses, deliberately excluding visually similar characters like 0, O, I, and l to reduce transcription errors.

Mnemonic seed phrases, governed by the BIP39 standard introduced in our cryptography article, remain the most common format end users actually interact with today; a sequence of 12 or 24 ordinary words that deterministically map back to the same underlying private key (or, more precisely on modern wallets, to an entire structured tree of keys, discussed next).

HD Wallets: One Seed, Many Keys

Early Bitcoin wallets generated and stored a separate, entirely independent private key for every new address a user wanted to receive funds at; which made backups a genuine headache, since any newly generated key created after your last backup was completely unprotected by it.

The modern solution is the Hierarchical Deterministic (HD) wallet, defined primarily through a trio of related standards: BIP32 (the core hierarchical key derivation logic), BIP39 (the mnemonic seed phrase format discussed above), and BIP44 (a standardized structure for organizing keys by account, currency, and purpose, allowing a single seed phrase to manage Bitcoin, Ethereum, and many other cryptocurrencies simultaneously, all from one backup).

The mechanism itself builds directly on the HashingHashingHashing is the process of converting data into a fixed-length code using a cryptographic function, ensuring data integrity and security.Keep learning concepts from our previous article: a single master seed is repeatedly hashed and combined with index numbers to deterministically derive an entire tree of child keys, grandchild keys, and so on; all reproducible, in the exact same order, from that one original seed phrase, every single time. This is why backing up a single 12- or 24-word seed phrase is sufficient to recover every address a modern wallet has ever generated or will ever generate, even ones created long after the backup was made.

You can see this entire derivation process laid out visually using the Ian Coleman BIP39 Tool, referenced in our cryptography article; entering a sample seed phrase there displays the full resulting tree of derived addresses across multiple cryptocurrencies, making the practical benefit of HD wallets considerably easier to grasp than the standards documents alone.

Hot Storage vs. Cold Storage

How and where a private key is actually stored is, in practice, the single factor that matters most for real-world security; considerably more than the underlying cryptography itself, which, as discussed in our previous two articles, is essentially unbreakable through brute force.

Hot Wallets

A hot wallet keeps private keys on a device connected to the internet; a phone app, a browser extension, or software running on a desktop computer. This offers convenience: funds are readily accessible for everyday transactions. The trade-off is exposure: any internet-connected device carries some inherent risk of malware, phishing, or remote compromise, and a successful attack against a hot wallet can result in immediate, irreversible loss of funds, with no central authority able to reverse the transaction or freeze the thief's account (a direct consequence of the DecentralizationDecentralizationDecentralization is the distribution of control and decision-making across a network instead of a single central authority.Keep learning explored throughout this series).

Cold Storage

Cold storage keeps private keys entirely offline, never exposed to an internet-connected device at any point. This dramatically reduces the attack surface, at some cost to convenience.

  • Hardware wallets are small, purpose-built physical devices; products like Ledger and Trezor are among the most widely used; specifically designed to generate and store private keys in a way that never exposes them to a connected computer, even when signing a transaction. The signing calculation itself happens on the isolated device; only the finished, signed transaction is passed back to the connected computer for broadcast.
  • Paper wallets involve generating a private key (and its corresponding public address) entirely offline, then recording it physically; printed or handwritten; with no digital copy retained anywhere. This eliminates any risk from malware or remote hacking entirely, at the cost of introducing physical risks instead: fire, water damage, loss, or simply misplacing a piece of paper.

A useful general principle in the CryptocurrencyCryptocurrencyCryptocurrency, often called “crypto,” is a form of digital currency that uses cryptography (advanced math and code) to keep it secure.Keep learning community, often summarized as "not your keys, not your coins," captures the core trade-off here directly: funds held on an exchange or other third-party custodial service are convenient, but ultimately rely on trusting that third party's own security and solvency; a meaningful departure from the self-CustodyCustodyCustody in crypto is the secure storage and management of private keys or assets, handled either by the user (self-custody) or a third party.Keep learning model this entire series has been describing.

Multisignature (Multisig) Wallets

A further refinement worth knowing about is the multisignature, or multisig, wallet; a setup that requires multiple private keys, often held by different people or stored in different locations, to jointly authorize a single transaction, rather than relying on any single key alone. A common configuration is "2-of-3," requiring any two out of three designated keys to sign before funds can move.

This directly addresses one of the sharpest risks of self-custody: a single point of failure. With a single private key, loss or theft of that one key means total, irreversible loss of funds. With a well-configured multisig setup, losing access to one key out of three doesn't compromise the funds at all, since the remaining two keys can still authorize transactions; while a thief who compromises only one key similarly gains nothing on their own. This approach is increasingly common both for individuals seeking stronger personal security and for organizations managing shared treasury funds, where requiring agreement from multiple independent signers is also a desirable safeguard against any single person acting alone, maliciously or by mistake.

Common Ways Private Keys Are Lost or Stolen

It's worth being direct about the practical failure modes here, since they're considerably more common in practice than any cryptographic weakness in the underlying algorithms themselves.

Phishing. Fake wallet interfaces, fraudulent customer support contacts, or malicious browser extensions designed specifically to trick a user into voluntarily typing in their seed phrase remain, by a wide margin, the most common method of theft.

Poor backup practices. A seed phrase stored only digitally; in a screenshot, a cloud note, or an email draft; is exposed to exactly the kind of remote compromise that cold storage was designed to avoid in the first place.

Physical loss or damage. A paper backup that's misplaced, thrown away by accident, or destroyed in a fire or flood, with no secondary copy, results in funds that are permanently, irrecoverably inaccessible; there being no central authority, as established throughout this series, capable of restoring access.

Brain wallets. An older, now widely discouraged practice of deriving a private key directly from a memorized passphrase, rather than using a properly generated random seed. Because human-chosen passphrases are, predictably, far less random than they feel, attackers have successfully brute-forced funds held in brain wallets by systematically hashing large dictionaries of common phrases; a real-world, practical demonstration of exactly why the randomness quality discussed earlier in this article matters as much as it does.

Security researchers have documented real-world cases of funds being drained from predictably generated private keys within seconds of receiving them, automated by bots that continuously scan for exactly this kind of weakness; a sobering, concrete illustration of why proper random key generation is treated as such a foundational requirement, rather than a theoretical concern.

Bringing It Together

A private key is, in the end, nothing more than a very large random number; and yet that one number, properly generated and properly protected, is the entire basis of self-custody throughout the system this series has explored from the ground up. To summarize:

  • A private key is fundamentally just a very large random number, drawn from a space large enough to make guessing infeasible; provided that randomness is genuinely high-quality
  • Private keys are represented in various formats; hex, WIF, and most commonly today, BIP39 seed phrases
  • HD wallets allow a single seed phrase to deterministically generate an entire tree of keys across multiple cryptocurrencies
  • Hot wallets trade security for convenience; cold storage (hardware and paper wallets) trades convenience for security
  • Multisig wallets remove the single point of failure inherent to relying on one private key alone
  • The overwhelming majority of real-world losses stem from practical failures; phishing, poor backups, physical loss, and predictable key generation; rather than any weakness in the underlying cryptography itself

Combined with our previous two articles, the full picture of 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 cryptography is now in place: hashing proves data integrity, public-key cryptography proves authorization, and the private key; a single, carefully generated and carefully guarded number; is the one piece of the entire system that ultimately determines who controls what.

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.

More Blockchain fundamentals

proof of work glossary cover image

Proof of Work

Proof of Work (PoW) is a consensus mechanism where miners use computing power to validate transactions and secure the blockchain.

Keep learning
tokenomics glossary cover image

Tokenomics

Tokenomics refers to a cryptocurrency’s economic design, including supply, distribution, utility, and incentives that influence its value and behavior.

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