Xpub (Extended Public Key)
A public key that can generate all the addresses below it, enough to watch a wallet but not to spend.
Basically
A read-only version of your wallet. It can see and receive payments but cannot spend. Shops use it so their servers cannot steal.
Key Takeaways
- An xpub is an extended public key that can derive all the addresses below it in an HD wallet.
- It enables watch-only wallets and payment processing without exposing spending power.
- A leaked xpub is a privacy leak, not a security breach.
What it does
Hierarchical deterministic wallets derive a tree of keys from one seed. The extended public key bundles the key and its chain code, so software can compute every child public key — every address — without ever knowing the private keys. A shop can generate fresh receive addresses for customers automatically on a server that cannot steal anything.
Spend authority stays with the corresponding extended private key, kept elsewhere. The xpub holder can watch balances arrive but cannot move funds.
The privacy caveat
Whoever holds your xpub sees every address and every payment across that branch — the whole transaction graph of that part of the wallet. Handing an xpub to a third party is safe for funds and generous with history. Hardened derivation exists precisely to stop child public keys from revealing structure to an xpub holder further up.