Beginner

What Is A Public Key?

Public keys make crypto wallets work by letting networks verify transactions without exposing the private keys that control your funds. This guide explains how public keys, wallet addresses, seed phrases, and xpubs differ, plus the privacy risks beginners often overlook.

Yousra Anwar Ahmed Yousra Anwar Ahmed Updated Jun 11, 2026
Digital public key connected across a blockchain network illustrating how public key cryptography secures cryptocurrency transactions and wallets

Overview

Introduction

A public key is a cryptographic identifier derived from a private key. When you send crypto, your wallet signs the transaction with the private key, which acts as your approval. The network then uses the public key to confirm the signature is valid, meaning whoever controls the matching private key authorized the transfer.

Most wallet apps never show users a raw public key. Instead, they display a wallet address, which is a shorter, network-formatted string derived from the public key. That is why someone can use a Bitcoin or Ethereum wallet for years without ever copying a full public key directly.

For everyday use, the distinction that matters is simpler: a receive address is what you share with others, and a private key or seed phrase is what you never share with anyone. The public key sits between those two things, doing cryptographic work in the background that most users will never need to touch.

Key Takeaways

  • What it is. A public key is the shareable side of a crypto key pair.
  • What it changes. It lets networks verify that a transaction was authorized without exposing the private key.
  • Main risk or limitation. A normal public key cannot spend funds, but addresses, xpubs, and reused wallet details can expose activity.

What Is a Public Key?

A public key is a cryptographic identifier derived from a private key. When you send crypto, your wallet signs the transaction (confirmation from your side) with the private key. The network then uses the public key to confirm that the signature is valid and that the transaction was authorized by whoever controls the matching private key.

Most wallet apps never show users a raw public key. Instead, they display a wallet address, which is a shorter, network-formatted string derived from public key data. That is why someone can use a Bitcoin or Ethereum wallet for years without ever copying a full public key directly.

For everyday use, the distinction that matters is simpler: a receive address is what you share with others, and a private key or seed phrase is what you never share with anyone. The public key sits between those two things, doing cryptographic work in the background that most users will never need to touch.

How Public Keys Fit Into Crypto Ownership

Crypto ownership comes down to one question: who can authorize a transaction? The answer is whoever controls the private key. Public keys make it possible to verify that answer without revealing the private key itself.

That separation is called asymmetric cryptography, meaning the two keys in the pair do different jobs. The private key creates a digital signature. The public key lets the network check that the signature is valid. Neither key can do the other's job.

In practice, the system splits into three paths:

  • Derivation: A private key generates a public key. That public key can then generate a wallet address. Funds sent to that address can only be spent with the original private key.
  • Signing and verification: When you send a transaction, your wallet signs it locally with the private key. The network verifies the signature using the public key, without the private key ever leaving your device.
  • Extended public keys (xpubs): An xpub can generate or reveal a range of wallet addresses within one account branch. It cannot sign transactions, but it exposes wallet activity, which is a privacy consideration covered further below.

A simple way to picture this: one path runs from private key to public key to wallet address (the derivation chain). Another runs from private-key signature to public-key verification (the transaction chain). The xpub sits beside the derivation chain as a watch-only branch that can see addresses but cannot move funds.

Public Key Vs. Private Key Vs. Wallet Address

Crypto ownership comes down to one question: who can authorize a transaction? The answer is whoever controls the private key. Public keys make it possible to verify that answer, without the private key ever being revealed.

That separation is called asymmetric cryptography. The two keys in the pair do different jobs. The private key creates a digital signature. The public key lets the network check the signature is valid. Neither can do the other's job. It is a clean split by design.

In practice, the system splits into three paths. These connect to each other, so it helps to see all three before going deeper into any one of them:

  • Derivation. A private key generates a public key, which generates a wallet address. Funds sent to that address can only be spent with the original private key.
  • Signing and verification. When you send a transaction, your wallet signs it locally with the private key. The network verifies the signature using the public key, without the private key ever leaving your device.
  • Extended public keys (xpubs). An xpub can generate or reveal a range of wallet addresses within one account branch. It cannot sign transactions, but it exposes wallet activity, which is a privacy consideration covered below.

One path runs from private key to public key to wallet address: the derivation chain. Another runs from private-key signature to public-key verification: the transaction chain. The xpub sits beside the derivation chain as a watch-only branch that can see addresses but cannot move funds.

How Wallets Generate And Use Public Keys

You never have to manage individual keys yourself. You back up a seed phrase, and the wallet handles everything else. That one phrase can regenerate every private key, public key, and address the wallet ever creates.

This works because most wallets follow a structure called hierarchical deterministic (HD) derivation. One root seed produces a whole tree of child keys, each tied to a specific account, asset, or address. Adding a new receive address does not require a new backup, because the seed phrase covers the entire tree. It is a tidy system once you see how it fits together.

The path from backup to usable address looks like this:

  • Seed phrase. Restores the root key material. Write this down and store it offline.
  • Master private key. The top of the key tree, derived from the seed.
  • Child private keys. Sign transactions for individual accounts or addresses.
  • Child public keys. Verify those signatures on the network.
  • Addresses. The receive destinations users actually see, formatted for each network.
  • Xpub. Lets software watch or generate addresses in a branch without any signing access.

Wallets differ in how much of this they surface. A hot wallet shows simplified address prompts and signing confirmations. A hardware wallet keeps the signing step on the device itself, showing the address on a separate screen before you confirm. Both use the same underlying key structure. If you are choosing between options, the best crypto wallets guide breaks down security model, chain support, and ease of use.

What Happens When You Receive Or Send Crypto

Receiving and sending are two separate flows, and a public key plays a different role in each.

When you receive crypto, you share a wallet address. The sender uses it to build a transaction on their end. Your private key is not involved at this point at all. The funds arrive at the address and sit there until you authorize a move.

When you send crypto, your wallet signs the transaction locally using your private key. That signed transaction goes out to the network. Other nodes verify the signature using your public key to confirm you authorized the transfer. If the signature does not match, the transaction is rejected.

The two flows solve different problems:

  • Receiving. You provide a correctly formatted address for the right asset and network. The sender handles the rest.
  • Sending. Your wallet builds the transaction, signs it offline with the private key, and broadcasts the signed result.

A public key cannot initiate a transfer on its own. Spending requires a valid private-key signature, and the transaction must also meet the network's format, fee, and balance requirements. On Bitcoin, for example, the P2PKH script checks that a provided public key matches a stored hash, then uses OP_CHECKSIG to verify the signature against it. That is why sharing a receive address does not give anyone the ability to move your funds.

Why Public Keys Are Safe To Share, And What They Still Reveal

A public key on its own cannot be used to steal anything. That part is true. But “safe to share” does not mean “no risk at all.” The issue is privacy, not security, and there is a real difference between the two.

Every transaction tied to a wallet address is recorded on a public blockchain. If the same address receives multiple payments, anyone with a block explorer can see the full history of those payments. Connect that address to a real identity, through a social post, a profile, or an exchange withdrawal, and your entire transaction history becomes visible to anyone who looks.

The most common ways users expose more than they intend to are practical and easy to miss:

  • Posting a receive address alongside a name or social media account.
  • Reusing one address across multiple payments or platforms.
  • Sharing an xpub with an app or service that does not strictly need wallet-branch visibility.
  • Sending screenshots that include visible balances or address strings.
  • Mixing exchange deposit addresses with personal wallet addresses under one identity.

So the rule is that a normal public key carries no spending risk. But addresses, xpubs, and wallet screenshots are on-chain clues that can be stitched together over time. For users who care about financial privacy, the best anonymous crypto wallets are built specifically to limit that exposure.

Public Keys Across Bitcoin, Ethereum, And Solana

Each network handles public keys and addresses differently. The format of an address, how it is derived from a public key, and when the full public key becomes visible all vary by chain. Beginners should use the address format their wallet generates for a given network rather than converting raw key data manually.

NetworkPublic key/address note
BitcoinWallets often share addresses derived from public key hashes, while spending can reveal public key data depending on the script type.
EthereumExternally owned account addresses are derived from public keys and shown with a 0x prefix.
SolanaAccount addresses are commonly represented as 32-byte values that can be Ed25519 public keys or program-derived addresses.

On Bitcoin, P2PKH addresses are built from a hash of the public key. The full public key only appears in the transaction input when an output is spent, depending on the script type. A fresh Bitcoin address does not immediately expose the underlying public key.

On Ethereum, the address is derived by hashing the public key with Keccak-256 and taking the last 20 bytes, then adding a 0x prefix. The raw public key is not shown during normal use. Wallets like MetaMask display this derived address directly, and the MetaMask wallet review covers how it handles keys and signing in practice.

Solana uses a different account model. An address may be a 32-byte Ed25519 public key or a program-derived address depending on the account type. That is structurally different from Bitcoin's UTXO model and Ethereum's EVM account style. If you are picking a wallet for Solana, check that it actually supports Solana's account structure. The best Solana wallets guide can help you with that decision.

Public Key Risks Beginners Miss

The public key itself is rarely the vulnerability. The risks come from what surrounds it: phishing attempts, clipboard malware, xpub leaks, address reuse, and sending on the wrong network. These cause more beginner losses than any issue with the public key directly.

Before moving funds, run through these checks:

RiskWhat to check
PhishingNever enter a seed phrase or private key into a website, support chat, or form.
Address MalwareCompare the first and last characters after pasting an address.
Wrong NetworkConfirm the asset and chain match the recipient's instructions.
Xpub ExposureShare an xpub only with tools that need wallet-branch visibility.
Address ReuseUse fresh receive addresses when privacy matters.
Quantum RiskSeparate long-term cryptography migration from claims of instant public-key theft.

A few of these deserve more detail for beginners.

Phishing is the most common attack vector. A legitimate wallet app, exchange, or support team will never ask for a seed phrase or private key. Any prompt asking for this information, in a form, a chat window, or a browser extension, is an attack.

Address malware (also called clipboard hijacking) replaces a copied address with an attacker's address. Always check the first four and last four characters of a pasted address before confirming a transaction, even on a device you trust.

Wrong network sends happen when the same address format is valid on multiple chains. Sending ETH to an Ethereum address on the Binance Smart Chain, for example, can result in funds that are inaccessible without additional steps. Always confirm the chain alongside the address.

How To Check And Protect Your Key Setup

Knowing what a public key does becomes actionable when it changes how you handle addresses, approve transactions, and store backups. The goal is to keep signing keys offline, verify addresses before confirming, and understand whether you are in control of the private keys or relying on someone else to hold them.

Start with the wallet model. A custodial wallet, like an account at a centralized exchange, means the provider holds the private keys. You access funds through their platform, and your withdrawal access depends on their policies and security. A self-custodial wallet means you hold the seed phrase and the private keys. You bear full responsibility for backup and security, but nobody else can freeze or access your funds. Users weighing that tradeoff can compare options in the self-custodial wallets category.

Before moving meaningful funds, check each of the following:

  • Wallet type: Confirm whether the wallet is custodial, self-custodial, hot, or cold.
  • Receive address: Check the network and several visible characters before sharing.
  • Hardware display: On a hardware device, confirm the address on the physical screen before signing. The Trezor Safe 5 is one example of this model.
  • Seed backup: Write the recovery phrase on paper and store it offline. Never type it into a website or app.
  • Small test: Send a small amount first, confirm it arrives, then proceed with the full transfer.
  • Exchange custody: If using a centralized venue, check the withdrawal process and whether two-factor authentication is active.

Hardware wallets reduce private key exposure because the signing step happens on the device, not on a general-purpose phone or laptop. Users who want to go further can compare options in the cold hardware wallets category. If managing keys still feels too complex, crypto exchanges for beginners cover custodial options where the provider handles the key infrastructure.

FAQs

What is a public key in crypto?

A public key in crypto is shareable key data that helps a network verify transaction signatures and, on many networks, helps create wallet addresses. It proves that a transaction was authorized by the matching private key without exposing that private key.

Is a public key the same as a wallet address?

No. A wallet address is usually a shorter, network-specific destination derived from public key data. Wallet apps display addresses rather than raw public keys because addresses are formatted for a specific chain and easier to use correctly.

Can someone steal my crypto if they have my public key?

No. Spending funds requires a valid signature from the matching private key, not the public key. Seeing a public key or wallet address gives no signing authority.

Can a public key reveal a private key?

No, not in properly implemented public-key cryptography. The math behind key derivation is designed to work in one direction only. That said, keeping private keys and seed phrases offline is still the right practice, since most wallet theft comes from phishing, malware, or exposed backups rather than cryptographic attacks.

What is an xpub and is it safe to share?

An xpub is an extended public key that can generate or reveal addresses in a wallet branch without signing transactions. It cannot spend funds, but it can expose transaction history and address patterns across that branch. Share it only with tools that genuinely need wallet-branch visibility, such as accounting software or a watch-only wallet setup.