LEARN · BITCOIN

What Are Private Keys and Public Keys in Bitcoin?

Your wallet does not store bitcoin like files. It manages cryptographic keys that let you sign transactions and let the network verify them. Which key must remain secret, and which can be public?

Alex wearing a navy hoodie illustrates a secret private key signing a Bitcoin transaction while a public key allows the network to verify it.

What is a private key?

A private key is a very large secret number. A wallet uses it to create the digital signatures required when spending bitcoin controlled by the corresponding key.

It is not the same as your phone PIN or wallet-app password. Someone who obtains the relevant private key can sign transactions spending bitcoin controlled by that key. That is why it must stay secret.

Normally you do not need to see or type private keys. Your wallet creates and uses them behind the scenes.

See also what a Bitcoin wallet actually stores.

What is a public key?

A public key is mathematically derived from a corresponding private key. Together, they form a key pair.

The public key can be used to verify a digital signature without revealing the private key. With today's computing methods, calculating the private key from the public key is not practical.

The public key alone cannot authorize spending bitcoin. Creating the required signature needs the private side of the pair.

Is a public key the same as a Bitcoin address?

No. A Bitcoin address is information you share when you want to receive bitcoin. A public key is cryptographic data used when signatures are checked.

Depending on the address type, spending conditions can rely on a public-key hash, a script or other constructions such as Taproot. An address is not necessarily just a public key written differently.

A receiving address can be shared, although doing so has privacy implications. Private keys and recovery words must remain secret.

How does a digital signature work?

Alex wants to send bitcoin to Maria. His wallet prepares a transaction containing the recipient, amount and fee. It uses the appropriate private key to produce a digital signature.

The signed transaction goes to the network. Nodes check the signature and the other spending rules. The private key does not need to be transmitted.

The signature proves that the required signing condition is met; it does not disclose the real name of the person who signed.

Watch the related video about what happens when you tap Send.

How are keys related to 12 or 24 recovery words?

A recovery phrase is not one individual private key. In many modern wallets, the words recreate an initial secret used to derive many private and public keys.

That is why one backup can restore multiple addresses. You still need compatible wallet software and the right settings. If you used an additional BIP39 passphrase, you also need it to restore the same wallet.

Anyone with all the necessary recovery information can control the wallet's bitcoin. Never put your recovery words in photos, cloud notes, email or chats.

Also watch the short video about recovery phrases and read the wallet backup and recovery guide.

Why can a wallet have many keys?

A modern wallet can generate many addresses from one initial backup. That helps you avoid giving out the same receiving address for every payment.

A wallet is not just one address and one key. It manages a collection of keys, addresses, transactions and balances.

What should you protect?

Keep private keys, recovery words and any additional passphrase secret. Do not share them with websites, alleged support agents or block explorers.

Public keys and receiving addresses are not secret in the same way, but publishing them can link your activity to your identity.

A hardware wallet can keep signing isolated from your computer, but a secure backup remains essential.

KEEP LEARNING

From keys to your actual wallet

Explore what a wallet really holds, watch the video about tapping Send, follow the wallet backup guide and go deeper with Book 1.

Frequently asked questions

Can someone steal bitcoin just by knowing my address?

No. An address alone cannot authorize spending. The transaction must satisfy the spending conditions, such as the appropriate digital signature.

Does a public key need to be secret?

Not like a private key. However, publishing it can reveal information about your transaction privacy.

Are 12 recovery words a private key?

No. In many wallets a recovery phrase leads to many private keys. With an additional BIP39 passphrase, both are needed to restore the same wallet.

Is my app PIN my private key?

No. The PIN protects your app or device, while a private key is used cryptographically to sign.

Does the network see my private key when I send bitcoin?

No. Nodes can verify the necessary digital signature without receiving your private key.