Free every Saturday: the week's 3 best articles. Join →
Subscribe

What Is a Private Key in Crypto and What Does It Sign?

Listen to this articleCrypto Radar Daily podcastA short audio version of every new article
0:00–:––
All episodes on RSS.com
In this article
    What Is a Private Key in Crypto and What Does It Sign? | Crypto Radar Daily: Bitcoin, Altcoins, Regulation
    What Is a Private Key in Crypto and What Does It Sign?

    You own some crypto, and somewhere in your wallet app or on a hardware device there is a thing called a private key. You've been told never to share it, but nobody explained what it actually is or why it matters so much. This article does.

    The short answer: a private key is a very large secret number, usually 256 bits long. From it, your wallet calculates a public key and then an address. When you send funds, the private key produces a digital signature that proves the transaction came from the owner of that address. The network checks the signature, not your name, password or identity. Whoever holds the key can sign, and whoever can sign controls the funds.

    How is a private key generated?

    A private key is a random number chosen from a range of roughly 1.16 × 1077 possibilities. That is close to 2256. Bitcoin and Ethereum both use an elliptic curve called secp256k1, and any number between 1 and the curve's order (slightly less than 2256) is a valid key.

    Written in hexadecimal (digits 0 to 9 and letters a to f), a private key is 64 characters long. The only thing that makes it secure is randomness. A wallet must draw it from a strong random source, such as the dedicated random number generator inside a hardware wallet or the operating system's secure generator. A key you pick yourself, or one derived from a memorable phrase, is not random and can be guessed.

    Most modern wallets don't show you the raw key at all. They generate random data called entropy, encode it as a seed phrase of 12 or 24 words, and derive all your private keys from that phrase. One phrase can produce thousands of keys, one per address.

    How does a private key become a public key and an address?

    The wallet runs the private key through elliptic curve multiplication, a one-way calculation. Going forward takes milliseconds. Going backward, from public key to private key, is not feasible with any known computer, because it would mean searching a space of about 1077 numbers.

    The address is then made by hashing the public key. A hash is a function that turns any input into a fixed-length fingerprint and cannot be reversed.

    ItemTypical sizeCan you share it?
    Private key32 bytes (64 hex characters)Never
    Public key33 bytes compressed, 65 uncompressedYes, it's revealed when you spend
    Bitcoin address20-byte hash (SHA-256, then RIPEMD-160) for common typesYes, to receive funds
    Ethereum addressLast 20 bytes of a Keccak-256 hash, shown as 0x plus 40 hex charactersYes, to receive funds
    Seed phrase12 or 24 wordsNever

    The chain runs one way: seed phrase → private keys → public keys → addresses. Nothing travels backward.

    What exactly does a private key sign?

    It signs a transaction. Your wallet builds a message that says, in effect, "move this amount from these funds to this address, with this fee." It hashes that message and combines the hash with your private key using a signature algorithm (ECDSA, and on Bitcoin also Schnorr for newer address types). The result is a signature of roughly 64 to 72 bytes.

    Every node on the network can then check three things using only public information: the signature matches the transaction, the signature matches the public key, and the public key matches the address holding the funds. If one byte of the transaction changes, the signature fails. The private key itself is never sent anywhere.

    Here is the everyday analogy. Think of a signet ring pressed into wax. Anyone can look at the seal and confirm it came from that ring, but looking at the seal won't let them make a copy of the ring. Your signature is the wax seal. Your private key is the ring. Lose the ring to a thief, and the thief can seal any letter in your name.

    Private keys can also sign plain messages, for example to prove you control an address, or to approve smart contract permissions on Ethereum. That last use is where many people get hurt: a signature that grants a contract permission to move your tokens is just as binding as a transfer.

    Why does whoever holds the key control the funds?

    Because there is no other test. A blockchain has no account manager, no password reset and no identity check. The rule is mechanical: a valid signature from the right key moves the funds. If an attacker copies your key or seed phrase, their signatures are indistinguishable from yours, and confirmed transactions cannot be reversed.

    The reverse is also true. If you lose the key and every backup, no one can sign for those funds again. They stay on the chain, visible and unreachable.

    What the research says

    The BIP39 specification for mnemonic seed phrases defines how 128 to 256 bits of entropy become 12 to 24 words drawn from a list of 2,048, and how those words are stretched into a seed using 2,048 rounds of a hashing function. Bitcoin's own guidance on securing your wallet stresses offline backups and encryption, because the backup is as powerful as the wallet. Ethereum's security and scam prevention page warns that no legitimate support team will ever ask for your seed phrase or private key. The FBI's Internet Crime Complaint Center collects reports of crypto fraud, and the CFTC's Learn and Protect resources describe how impersonation and fake-support scams aim to extract exactly these secrets.

    Common mistakes

    1. Believing the exchange or wallet company can recover your key. With a self-custody wallet, no company holds a copy. If you lose the seed phrase and the device, recovery is not possible.
    2. Storing the key or seed phrase digitally. Photos, cloud notes, email drafts and password-protected spreadsheets can all be synced, leaked or read by malware. Write it on paper or stamp it into metal, and keep it offline.
    3. Signing what you don't understand. A pop-up asking you to "verify" or "connect" may be an approval that lets a contract drain your tokens. Read every signing request on your hardware wallet's screen, and reject anything you can't explain.

    What should you do, in what order?

    1. Generate your wallet on a trusted device, ideally a hardware wallet, never with a key someone else gave you.
    2. Write the seed phrase down by hand, check each word against the device, and store it in at least 2 separate secure locations.
    3. Send a small test amount, then confirm you can restore the wallet from the phrase before storing larger sums.
    4. Verify every receiving address on the device screen, not only on your computer.
    5. If you plan for inheritance or hold large amounts, consult a qualified lawyer or financial professional about safe arrangements. If you suspect theft, report it to the IC3 promptly and treat anyone offering to "recover" funds for a fee as a likely second scam.

    This article is general security information, not financial or investment advice. Never share your seed phrase with anyone, for any reason.

    Ciro Simone Irmici
    Who's behind this
    Ciro Simone Irmici

    I'm an Italian creator who builds apps, games and websites. I run Crypto Radar Daily with the help of AI tools: every article starts from the sources linked above, and I check what goes out. I'm not a doctor, a lawyer or a financial adviser. Spotted a mistake or have an idea? Write to me.

    Instagram @spartaco_94_My websiteWrite to meAbout this blog
    Share this article

    Made by the same author

    Free sites and apps I built. Real tools, no sign-up.

    honesttoolkit.com
    Honest Toolkit

    Free calculators, printable checklists and short guides for money, home, work and fitness.

    • 74 calculators
    • 57 checklists
    • 52 guides
    storiascopio.com
    Storiascopio

    All of history on one line, from the Big Bang to today: the story behind the news, told in a few minutes.

    • 300 events
    • Audio and quiz
    • 5 languages
    tpgift.app
    The Perfect Gift

    The app that remembers birthdays and finds the right gift with AI, with real prices and links.

    • iPhone and Android
    • Gift ideas in seconds
    • Free to start
    cirosimoneirmici.com
    Free games

    11 free games I built, playable right away in the browser: arcade, puzzles, typing and 3D.

    • 11 games
    • Free
    • No download

    My books

    I wrote these ebooks. If you buy one, the money goes to me and keeps this blog free.

    My other blogs