Public and Private Keys

A private key is the secret that proves ownership and authorises transactions; the public key, from which the address is derived, can be shared safely.

Crypto has no account manager who checks your ID before a payment. Instead, ownership is proved with mathematics: a pair of linked keys. One is shared with the world so anyone can send to you and check your signatures; the other must never leave your control. Understanding the difference is the foundation of crypto security.

Category
Cryptocurrency and Blockchain
Reading time
4 min
Also called
Key pair, Asymmetric keys, Crypto keys
Updated

Keys in plain words

The private key is the secret half of a key pair, used to sign or decrypt.1

The public key can be shared freely; it lets others check signatures made with the matching private key.2

On Ethereum, a user account is made up of a public and private key pair that control account activity.3 Your address is derived from the public key, so it is safe to share. See Counterparty Risk.

How keys work in a transaction, step by step

  1. Generate a key pair

    Your wallet creates a private key and its matching public key.

  2. Derive an address

    The address is derived from the public key and can be shared to receive funds.

  3. Sign

    To send funds, the wallet signs the transaction with the private key.1

  4. Verify

    The network uses the public key to verify that the signature matches.2

  5. Control follows the key

    An account is controlled by anyone with the private keys.3

  6. Back up and secure

    Securing crypto mainly means securing the private keys.4

Worked examples

Example 1 — Sharing an address

Safe to share

You give a friend your address to receive 0.1 ETH.

Example 1 — Sharing an address — calculation
SharedAddress (from the public key)
Kept secretPrivate key and seed phrase
Risk from sharing the addressNone to your funds

Public keys may be made public; they are used to verify, not to spend.2

Example 2 — A leaked private key

$4,000 at risk

Someone sees a photo of your private key. Your wallet holds $4,000.

Example 2 — A leaked private key — calculation
Who can spendAnyone with the key
Funds at risk$4,000

Ethereum user accounts are controlled by anyone with the private keys.3

Example 3 — Why guessing is hopeless

Security depends on you

A 12-word seed phrase uses words from a list of 2,048.

Example 3 — Why guessing is hopeless — calculation
Possible combinations2,048¹² = 2¹³² ≈ 5.4 × 10³⁹
At 1 trillion guesses per secondFar longer than the age of the universe

The danger is not guessing but losing or leaking the backup; seed phrases are often the only way to recover a wallet.5

Private key vs. public key

AspectPrivate keyPublic key / address
Share it?NeverYes
Used toSign and spendReceive and verify
If lostFunds may be gone for goodCan be recreated from the private key
If leakedAnyone can spendNo direct risk

Where keys matter

  • Receiving funds

    Share your address, never your private key.

  • Sending funds

    Signing with the private key authorises the transfer.

  • Self-custody

    You are responsible for your keys.

  • Exchange accounts

    The exchange holds the keys for you.

Advantages and disadvantages

Advantages

  • Ownership proved without a bank.
  • Anyone can verify signatures with the public key.
  • Addresses can be shared safely.
  • Keys are practically impossible to guess.

Disadvantages

  • A lost private key usually means lost funds.
  • A leaked key gives full control to the thief.
  • No password reset or customer support.
  • Phishing targets seed phrases and keys.

Going deeper

Read as far as you need. Each level builds on the one before it.

One secret, one public

Beginner

The private key is the secret half used to sign.1 The public key can be shared.2

Accounts are keys

Intermediate

An Ethereum user account is a key pair that controls account activity.3 Whoever has the private key controls the account.3

Key management is the real risk

Advanced

Since securing crypto comes down to securing private keys, backups and devices matter more than the cryptography.4 Seed phrases restore all keys in a wallet, so protect them the same way.5

Common mistakes

  1. Sharing the private key

    Giving it to 'support' or typing it into a website.

  2. Storing keys online

    Keeping them in email, cloud notes or screenshots.

  3. Confusing address and key

    Thinking an address is secret or a key is shareable.

  4. No backup

    Relying on one device.

Check your understanding

Test yourself before moving on. Each answer comes with an explanation.

Q1Which can you safely share?
Q2What does the network use to check a signature?

Key points to remember

  1. A private key signs and proves ownership.
  2. A public key verifies and can be shared.
  3. Addresses are derived from public keys.
  4. Whoever holds the private key controls the funds.
  5. Back up keys offline and never share them.

Frequently asked questions

Is a seed phrase the same as a private key?

Not exactly. A seed phrase can regenerate all the private keys in a wallet, so it is even more sensitive.

Can someone steal funds with my address?

No. An address only lets people send to you and see the balance.

Can a lost private key be recovered?

Only from a backup such as a seed phrase. No company can reset it.

Further learning

Sources

This article is written in our own words. The sources below support the specific facts, rules and figures marked with a number in the text. Links open the original publisher’s page.

  1. NIST CSRC Glossary. Private key (opens in a new tab) Checked .
  2. NIST CSRC Glossary. Public key (opens in a new tab) Checked .
  3. ethereum.org. Ethereum accounts (opens in a new tab) Checked .
  4. FINRA. Crypto Assets (opens in a new tab) Checked .
  5. ethereum.org. Ethereum wallets (opens in a new tab) Checked .

Educational content, not financial advice. Examples use hypothetical prices and simplified costs; actual fees, margin rules and regulations vary by broker, market and country. We are not affiliated with any publisher linked above. Last reviewed . Report an error or request a source credit.