Skip to content
DonateБГ

Beginners

Keys and addresses

To receive bitcoin, you share an address made from your public key. Your private key proves you own it, so it must stay secret. Learn how they connect.

By Dimitar Zurnov · Updated 4 Nov 2026
Adapted from Learn Me a Bitcoin by Greg Walker.

To receive bitcoin, you need an address, and to spend it, you need a private key. A bitcoin address is a short code made from a public key, while the private key is the secret number that proves you own that address. Together, they let anyone pay you and let only you spend what you receive.

A helpful comparison is an account number and a password, although the comparison is rough. An address can only receive coins, and the private key is used to create a signature for each payment, so it is never sent anywhere.

How do the keys connect?

A private key becomes a public key, then an address, and each step runs one way only. Private key Secret, a random 256-bit number elliptic curve maths Public key Compressed: 33 bytes hash, then encode Address (share this) 1EUXSxu…WMHuem
Each arrow is one step. The steps cannot be reversed in practice.

Everything starts with the private key, a random 256-bit number that your wallet creates on your own device. From the private key, the wallet works out the public key using elliptic curve maths. Then it hashes the public key and encodes the result, which gives you the address that people can use to pay you.

The address holds a 20-byte hash of the public key, a version byte and a short checksum. The checksum helps catch typing mistakes, so a mistyped address is usually rejected instead of paying the wrong person. The encoding is Base58, which leaves out characters that look alike, such as 0 and O.

Here is one example set of keys. Do not send coins to it, because its private key is published, and anyone could spend from it:

Private key  ef235aacf90d9f4aadd8c92e4b2562e1d9eb97f0df9ba3b508258739cb013db2
Public key   02b4632d08485ff1df2db55b9dafd23347d1c47a457072a1e87be26896549a8737
Address      1EUXSxuUVy2PC5enGXR1a3yxbEjNWMHuem

Which keys can you share?

An address and a public key are safe to share, but the private key must stay secret. Safe to share ✓ 1EUXS…WMHuem Address where people send coins 02b4…a8737 Public key checks the signatures Keep secret Private key anyone with it can spend
Share the address with payers. Keep the private key secret.

You can, and should, share your address with anyone who wants to pay you. Your public key is also safe to share, because it does not reveal the private key. Anyone with your public key can check your signatures, but cannot spend your coins.

The private key is different. Anyone who holds it can spend your coins, whether or not they have your wallet app. Never share it with anyone.

Can someone work out your private key from your address?

No. Each step in the chain is one-way, which means you can move from the private key to the address but never back again. The address is a hash of the public key, so it reveals even less than the public key does. For that reason, an address is safe to post in public, and a payer can check where coins are going without learning anything secret.

Do you need to keep all three?

Not really. The public key and the address both come from the private key, so the private key alone is enough to rebuild them. Most modern wallets go further and back up their keys with a seed phrase, a list of words that can recreate every key in the wallet. The mnemonic seed page explains how that works in detail.

Most people use a wallet that handles keys and addresses for them, so they never have to copy a key by hand. The thing to protect is the private key, or the seed phrase that holds it.

What happens if you lose the private key?

The coins sent to that address stay exactly where they are, and nothing can give you back the private key. Without it, you cannot prove that you own the address, and nobody else can spend the coins either.

If the private key for an address is lost, the coins at that address stay locked for good. Coins at an address Only the private key unlocks Private key lost The address cannot return it. Coins locked for good Nobody can spend them
The chain runs one way, so a lost key cannot be rebuilt.

This can seem harsh, but it also means there is no back door into your money. There is no password reset, and no support desk can recover your coins for you. Ownership rests entirely with you, which is both the strength and the risk of the system.

Next, private keys looks at the secret number at the start of the chain, how it is made, and why it has to be random.

In this section: Beginners

All of Bitcoin from zero

Something look wrong? Tell us