BeginnerBlockchain · Lesson 8 of 13

Keys, Addresses and Wallets

What really proves you own a bitcoin, what you share to get paid, and what a wallet actually holds

6 min read6 quiz questionsProgress
In one sentence

Owning bitcoin means holding a private key, a secret number that lets you sign payments. From it come a public key and an address you can share. A wallet does not hold coins at all: it holds keys and uses them to sign.

Watch the video

A short visual tour of this lesson.

One secret, two things you can share

In Lesson 5 we saw that the blockchain holds no names, only addresses. So how does the network know a coin is yours? The answer is a set of three linked pieces:

  • Private key. A secret number, chosen at random from a range so large that it has 78 digits, the same scale as the hashes in Lesson 6. Whoever knows it can spend the coins linked to it.
  • Public key. A number calculated from the private key with a special kind of math. It can be shown to anyone.
  • Address. A shorter code made by hashing the public key, plus a built-in check that catches typing mistakes. This is what you give people so they can pay you.

Each step goes one way only. Turning a private key into a public key, and a public key into an address, takes a computer a fraction of a second. Going backwards is practically impossible. That is why you can publish your address anywhere without putting your coins at risk.

Private keykeep it secrete9c4…7b21Public keycalculated from the private key02a7…f19cAddressshare it to get paidbc1q…k8d3easyeasyEach arrow takes a fraction of a second. Going back the other way is practically impossible.
Private keykeep it secrete9c4…7b21Public keycalculated from the private key02a7…f19cAddressshare it to get paidbc1q…k8d3easyeasy
Figure 1. The private key creates the public key, which creates the address. Each step works only in one direction, so sharing your address never reveals your private key.

Spending means signing

To spend bitcoin, your wallet builds a transaction and adds a digital signature made with your private key. Every node can check that signature using your public key and confirm that it was made by the matching private key, without ever seeing the private key itself.

The signature is also tied to the exact details of that one transaction. If anyone changes the amount or the destination by even one character, the signature stops matching and every node rejects it. That is why nobody can intercept your payment on its way through the network and redirect it.

This is the big shift from banking. A bank decides whether you may spend by checking who you are. Bitcoin only checks whether the signature is valid. No name, no password reset, no customer service, just math.

What Bitcoin addresses look like

Bitcoin has changed its address format a few times. All of them still work, and you can tell them apart by their first characters:

Starts withTypeIntroduced
1Legacy, the original format2009
3Script address, often used for shared or multi-signature wallets2012
bc1qNative SegWit, smaller transactions and lower fees2017
bc1pTaproot, the newest format, with more privacy and flexibility2021

Other blockchains use their own styles. Ethereum addresses, for example, start with 0x followed by 40 characters. You cannot swap a Bitcoin address for an Ethereum one, even when the same app shows both.

A good wallet creates a new address each time you ask to receive. All of them belong to the same wallet, and old ones keep working. Using fresh addresses makes it harder for strangers to link all your payments together.

What a wallet really holds

Despite the name, a wallet never holds coins. The coins exist only as entries on the blockchain. A wallet is a tool that stores your keys, reads the blockchain to show your balance, creates transactions and signs them.

Wallets come in two broad groups:

  • Hot wallets keep keys on a device connected to the internet, such as a phone app or a desktop program. They are convenient for everyday use, but the keys are exposed to anything that can attack that device.
  • Cold wallets keep keys offline. A hardware wallet is a small device that stores the keys inside and signs transactions without ever revealing them to your computer. It is slower to use but far harder to hack.

If your coins sit on an exchange, the exchange holds the keys, not you. Lesson 10 compares the two choices, and Lesson 9 covers the backup that protects all your keys at once.

Why this matters for traders Trader's angle

  • Check the whole address, every time. In an address poisoning scam, attackers send a tiny transaction from an address that looks almost like one you use, hoping you copy it from your history next time. In May 2024, one trader sent 1,155 wrapped bitcoin, worth about $68 million, to such an address. The attacker later returned most of it after negotiations, a very rare outcome.
  • Match the network, not just the address. Exchanges often support the same coin on several networks. Sending on a network the receiving side does not support can make funds very hard or impossible to recover. Check the network and any required memo or tag before you confirm.
  • Send a small test first. For large or first-time transfers, a small test payment costs a little in fees and can save the whole amount. Many traders also use withdrawal address whitelists on their exchange accounts.

Key terms

Private key
A secret random number that lets its holder sign transactions and spend the coins linked to it.
Public key
A number calculated from the private key that can be shared and used to check signatures.
Address
A shorter code made from the public key, which you share so others can send you coins.
Digital signature
Proof made with a private key that approves one exact transaction, which anyone can check with the public key.
Wallet
A tool that stores your keys, shows your balance from the blockchain, and creates and signs transactions.
Hardware wallet
A small device that keeps private keys offline and signs transactions without exposing the keys to a computer.

Key takeaways

  1. Owning bitcoin means controlling a private key. Whoever has the key can spend the coins.
  2. A public key and an address are calculated from the private key, and neither can be turned back into it.
  3. Spending requires a digital signature tied to the exact transaction, which every node can check without seeing the private key.
  4. Bitcoin addresses start with 1, 3, bc1q or bc1p depending on their type, and a wallet can create a fresh address for every payment.
  5. Wallets hold keys, not coins. Hot wallets are convenient, while cold wallets keep keys offline and much safer.

Test yourself

Choose an answer for each question. You will see the correct answer and a short explanation right away.

Question 1 of 6
What gives someone the power to spend bitcoin?
Question 2 of 6
Why is it safe to share your address publicly?
Question 3 of 6
What happens if someone changes the amount in a signed transaction?
Question 4 of 6
What does a crypto wallet actually store?
Question 5 of 6
A Bitcoin address starts with bc1q. What type is it?
Question 6 of 6
What is the main advantage of a hardware wallet?

For education only. Nothing on this page is financial advice.