How Bitcoin Works

What are Public & Private Keys?

About public and private keys in distributed networks

About public and private keys in distributed networks

Written By: The MOB

Last Updated on November 1, 2025

At the heart of Bitcoin lies a powerful but invisible idea: ownership is not determined by a name, a bank account, or a piece of paper. Instead, it is determined by something called a private key. The private key is like the master password to your Bitcoin, and without it, you do not really own the coins you think you do. To understand how this works, we need to explore the relationship between public and private keys.

A good starting point is to think about locks and keys in the physical world. If you want to receive mail, you give people your address. Anyone can know it; it is not a secret. But if you want to open the mailbox and actually read the letters, you need your key. Only you should have that. In Bitcoin, your public key functions like the address — it is something you can share with others so they know where to send coins. Your private key, on the other hand, is like the secret key to open the mailbox. It proves you have the right to access and spend the coins that were sent to you.

The public and private keys are generated together as a pair using cryptography, a branch of mathematics that deals with codes and secure communication. The private key is a long string of numbers and letters, essentially a very large random number. From this private key, your wallet generates a public key using a mathematical formula. This formula works only one way — meaning that while a public key can be derived from a private key, it is practically impossible to reverse the process and guess the private key from the public one. This one-way relationship is what makes Bitcoin secure.

When you send Bitcoin, what you are really doing is creating a digital message — a transaction — and then attaching a unique signature to it using your private key. This signature proves to the network that you are indeed the rightful owner of the coins you are trying to spend. The fascinating part is that everyone else can verify this signature using only your public key. They do not need your private key, and they never see it. In this way, you can prove ownership without ever revealing your secret. It is similar to signing a letter with a signature that everyone recognizes as yours, but that no one can use to forge another letter on your behalf.

This system makes Bitcoin ownership radically different from traditional money. If you have a hundred-dollar bill in your pocket, ownership is established simply by possession: whoever holds it can spend it. In the banking system, your money is tied to your name on a ledger maintained by the bank, and your password merely gives you access to their records. With Bitcoin, however, possession is not about your name or even the coins themselves. It is about whether or not you control the private key that unlocks them on the blockchain. If you lose the key, the coins are gone forever. If someone else steals the key, they effectively own the coins, regardless of what your name is.

Because of this, Bitcoiners often repeat the phrase, “Not your keys, not your coins.” If your Bitcoin is held on an exchange or in a custodial wallet where you do not personally control the private key, then you do not truly own it. You simply have a claim against the company holding it on your behalf, much like a balance with a bank. True ownership of Bitcoin means holding your own private keys, usually secured in a software or hardware wallet that only you control.

The beauty of this system is that it allows ownership to be both private and verifiable at the same time. Anyone in the world can see the balance at a public address on the blockchain, but only the person with the corresponding private key can spend it. It is like having a transparent safe on public display: everyone can see the gold inside, but only the person with the secret combination can open it.

This combination of public and private keys is what makes Bitcoin decentralized. There is no authority you need to appeal to in order to prove you own your coins. The math itself proves it for you. This is why the system does not need banks, courts, or identification documents to function. A private key is enough to establish ownership, and that key belongs to whoever holds it.


In short, public and private keys are the twin pillars of Bitcoin security. The public key allows the world to recognize your wallet and send you funds, while the private key ensures that only you can spend what you have received. Together, they replace the trust we used to place in banks and governments with the certainty of cryptography. To hold your private key is to hold your Bitcoin; to lose it is to lose your wealth. That is both the promise and the responsibility of this new digital money.

Create a free website with Framer, the website builder loved by startups, designers and agencies.