Beginner

Public keys, private keys & signatures

How crypto networks know a payment really came from you, even though nobody ever sees your secret. No math needed.

7 min read · Last updated November 6, 2026

Helpful background: What is a blockchain?

The problem keys solve

A blockchain has no customer service desk and no login page. Nobody checks your ID. So how does the network know you're allowed to move a particular coin?

The answer is a pair of mathematically linked numbers: a private key and a public key. Ownership on a blockchain comes down to being able to prove you control the private key.

The core idea: a wax seal only you can make

Imagine you own a unique seal stamp, and you keep it hidden. You press it into wax on every letter you send. Anyone with a picture of your seal's pattern can check that a letter really came from you, but that picture doesn't let them make the stamp.

The analogy has one limit. A real wax seal looks the same on every letter, so it could be copied. A digital signature depends on the exact message, so it can't simply be moved to a different one.

How it really works

  1. Create a private key. Your wallet generates a very large random number. On Bitcoin and Ethereum, it's 256 bits long, which allows about 1077 possible values.
  2. Derive a public key. Math turns the private key into a public key. This is easy to do in one direction and, as far as anyone knows, practically impossible to reverse.
  3. Derive an address. Most wallets shorten the public key into an address, using a hash and some formatting. This is what you share to get paid.
  4. Sign. When you make a payment, your wallet combines the payment details with your private key to produce a signature.
  5. Verify. Anyone can use the public key, the signature and the payment details to check that the signature is valid. The private key is never revealed.

A worked example

Suppose Ana signs this message: "Send 0.5 coins to Ben's address, fee 0.001". The network checks the signature and accepts it.

Now a dishonest node changes the message to "Send 0.5 coins to Eve's address". The signature no longer matches the message, so every honest node rejects it. A signature therefore proves two things at once: who authorized the payment, and that the details haven't changed since it was signed.

What "not your keys, not your coins" means

You'll often hear this phrase. It means that whoever controls the private key controls the funds. If a company holds the keys for you, you depend on that company to let you withdraw. This is called custody.

Holding your own keys has its own trade-off. You don't depend on a company, but there's also nobody to call if you lose them. Neither choice is right for everyone. Mt. Gox and FTX show the risk of relying on a company, and lost keys show the risk of relying on yourself.

Risks and common mistakes

Safety tip

🛡️ Never type your private key or seed phrase into a website or send it to anyone. Real support staff will never ask for it. HissCrypto will never ask for it either. For a deeper look at how keys are stored, read How crypto wallets work.
💡 Key takeaways
  • A private key is a secret number, and a public key is derived from it.
  • A signature proves that the key holder approved a specific message, without revealing the key.
  • Changing a signed message makes its signature invalid.
  • Whoever controls the private key controls the funds, so holding keys yourself and using a company carry different risks.

Check your understanding

1. Is it safe to share your public address?

Yes. People need your address to pay you. It can reveal your transaction history, but it can't be used to spend your funds.

2. Why can't someone change a signed payment to send funds to themselves?

A signature is tied to the exact payment details. If they change, the signature no longer verifies, and nodes reject the transaction.

3. What does "not your keys, not your coins" mean?

Whoever controls the private keys controls the funds. If a company holds the keys, you rely on that company to give you access.

Further reading

Keep learning

Part of the Crypto Foundations track, lesson 4 of 9.

Educational content only. This lesson explains how a technology works. It isn't financial, investment or legal advice. Cryptocurrencies are volatile and risky. Always do your own research.