Foundations · Bitcoin Knowledge Center

Keys & Addresses

In Bitcoin, a private key is the secret that authorises spending, a public key is derived from it, and an address is a shareable form used to receive payments.

  • Intermediate
  • 6 min read
  • Updated

Why it matters

Bitcoin has no usernames, passwords or account recovery. Control of coins comes down to one thing: knowledge of a secret number called a private key. Whoever knows it can spend. Whoever loses it cannot.

Nearly every theft and every permanent loss in Bitcoin traces back to how keys were handled. Understanding the relationship between keys and addresses is the foundation for everything in the wallets and security section.

How it works

From seed phrase to addresses
  1. Seed phrase12 or 24 words. The master secret.
  2. Private keysDerived from the seed. Sign transactions.
  3. Public keysDerived from private keys.
  4. AddressesSafe to share. Where funds are received.
The arrows only go one way: an address cannot be turned back into a private key. Anyone who has the seed phrase controls everything derived from it.

Three linked items do the work:

  • A private key is a very large random number. It must stay secret.
  • A public key is calculated from the private key using elliptic-curve mathematics. The calculation is easy in one direction and infeasible to reverse with known methods.
  • An address is a shorter, more convenient form produced from the public key, with built-in error checking. This is what you give to someone who wants to pay you.

In plain words

Think of a locked letterbox on a public street. The address is the slot: anyone may know where it is and drop something in. The private key is the only key that opens the box. Unlike a real lock, this one can never be changed, and no locksmith exists. A copied key works just as well as the original.

Anyone with the key controls the funds

Anyone who obtains a private key or a seed phrase has complete control of the funds, and their transactions cannot be reversed. No legitimate service, support agent, wallet provider or exchange will ever ask for your private key or seed phrase. This site never asks for them either. A request for them, in any form, is a sign of phishing.

Signatures

How a signature authorises a payment
  1. TransactionThe wallet builds the payment.
  2. SignThe private key produces a signature for this exact transaction.
  3. BroadcastTransaction, signature and public key are sent out.
  4. VerifyAny node checks the signature using only public data.
The private key never leaves the wallet. Only the signature it produces is shared.

To spend an output, a wallet must prove it holds the right private key without revealing it. It does this with a digital signature: a value computed from the private key and the specific transaction.

Nodes verify the signature using the public key. A valid signature shows two things: the signer knows the private key, and the transaction has not been altered since it was signed. A signature for one transaction cannot be reused on another. The process is explained further in signing transactions.

This is how the locks in the UTXO model work. Most outputs are locked to a public key or its hash and are opened by a matching signature.

Address formats

Common Bitcoin address formats
Starts with 1The original format. Still valid, and the least space-efficient to spend from.
Starts with 3A script address. Often used for multi-signature setups or as a compatibility wrapper.
Starts with bc1qNative SegWit. Normally written in lower case, with stronger error detection.
Starts with bc1pTaproot, the most recent common format.
All four live on the same Bitcoin network. Some older services cannot send to the newer formats.

Bitcoin has gained new address types through upgrades. They differ in how the spending condition is written, which affects transaction size and therefore fees. A wallet can usually receive on more than one type.

Addresses contain a checksum, so most typing errors produce an invalid address that wallet software refuses. A checksum cannot detect a correctly formed address that belongs to the wrong person.

Going deeper

Seed phrases and many keys

Modern wallets do not store one key. They create a master secret, shown to the user as a seed phrase of 12 or 24 words, and derive a practically unlimited sequence of private keys from it. That is why one backup restores a whole wallet, and why a wallet can show a new address for every payment. See seed phrases.

Using a fresh address each time is a privacy measure. Every payment to an address is public, so reusing one links those payments together for anyone to see.

Why guessing a key is not realistic

The number of possible private keys is roughly 10 to the power of 77. Generating keys at random and hoping to hit one in use is not feasible with any existing or foreseeable conventional computer.

That strength depends on the key being truly random. Keys made from weak randomness, or from a memorable phrase, have been found and emptied by attackers.

More than one key

An output can require several signatures, for example any two of three keys. Such multi-signature arrangements let a group share control, or let one person avoid a single point of failure.

Who holds the keys

Who holds the keys?

CUSTODIAL

A company holds the private keys for you.

  • Account recovery is possible
  • You rely on the company's solvency and security
  • Withdrawals can be paused

NON-CUSTODIAL

You hold the private keys yourself.

  • No custodian can freeze the wallet or block a transfer (a token issuer can still freeze some tokens)
  • In a standard wallet, no one can recover a lost seed phrase
  • Security is entirely your responsibility
Neither is risk-free. The risks are simply different.

When coins sit on an exchange, the exchange holds the keys and the customer holds a claim on the company. The trade-offs are set out in custodial vs non-custodial.

A hypothetical wallet from creation to recoveryHypothetical illustration

  1. Ana installs a wallet. It generates a seed phrase, which she writes on paper and stores offline.
  2. The wallet derives a first private key, its public key and an address. She sends the address to Ben.
  3. Ben pays to that address. The network records an output locked to Ana’s key.
  4. Later, Ana spends it. Her wallet signs the transaction and nodes verify the signature.
  5. Her phone breaks. She installs the wallet on a new device and enters the seed phrase. The same keys are derived again and her funds reappear.

Now change one detail: the paper is lost as well. No company, developer or miner can restore access. The coins remain visible on the blockchain and cannot be moved by anyone.

Change a different detail: someone photographs the paper. That person can now spend everything, from anywhere, without touching Ana’s phone.

What it does NOT mean

  • An address is not an account. It is a destination tied to a key. The ledger stores outputs, not balances by address.
  • A private key is not a password. It cannot be reset, changed or recovered by anyone.
  • A wallet app’s PIN is not the key. The PIN protects the app on one device. The seed phrase controls the funds everywhere.
  • Sharing an address is safe but not private. Nobody can spend from an address alone, yet anyone can view every payment it has received.
  • A valid address is not proof of the right recipient. The checksum catches typos, not a substituted address.

Common misunderstandings

  1. Storing a seed phrase digitally. Photos, cloud notes and email drafts are common places for thieves and malware to look.
  2. Typing a seed phrase into a website or form. Genuine wallets ask for it only when restoring, inside the wallet itself.
  3. Not checking a pasted address. Some malware replaces a copied address with the attacker’s. See addresses and sending safely.
  4. Assuming all networks share addresses. Sending to an address on the wrong network, or the wrong asset to a Bitcoin address, can make funds unrecoverable.
  5. Believing a lost key can be regenerated. Only a backup made beforehand restores access.

Limits and open questions

  • No safety net. Self-custody removes reliance on a company and places all responsibility on the holder. Loss and theft are permanent.
  • Human factors. Most failures come from handling of keys, not from broken cryptography.
  • Quantum computing. Sufficiently powerful quantum computers could, in theory, weaken the signature scheme Bitcoin uses. No such machine is known to exist, and how and when the network would respond is an open research and governance question.
  • Inheritance and access. Passing keys on safely without exposing them is a practical problem with no standard solution.

Key takeaway

A private key authorises spending, a public key lets anyone verify the signature, and an address is the shareable form for receiving. Control of the key is control of the coins, with no reset and no appeal.

Sources and further reading