Extended Public Key (XPUB)

An Extended Public Key (XPUB) is a master public key used in hierarchical deterministic wallets. It allows the generation of an unlimited number of public addresses without exposing the private keys

What is an Extended Public Key (XPUB)?

An Extended Public Key (XPUB) is a master public key used in hierarchical deterministic (HD) wallets. It allows the generation of an unlimited number of public addresses without exposing the private keys. XPUBs are part of the BIP-32 standard for modern crypto wallets.

How is an XPUB used in crypto wallets?

XPUBs enable wallets, applications, or services to derive new receiving addresses on behalf of a user. This allows:

  • Creating multiple deposit addresses from one key
  • Keeping a user’s balance organized across many addresses
  • Enhancing privacy by avoiding address reuse

Because the XPUB only generates public addresses, it cannot move funds or reveal private keys.

Why are XPUBs important for security and convenience?

XPUBs help separate viewing permissions from spending permissions. For example:

  • Exchanges or payment processors can generate deposit addresses without holding private keys.
  • Portfolio-tracking tools can view balances derived from an XPUB without accessing the wallet.
  • Hardware wallets use XPUBs to create new addresses while keeping private keys offline.

This structure allows secure, scalable address management.

What are noteworthy examples of XPUB usage?

  • A merchant service generating a new payment address for every customer order using a customer’s XPUB.
  • A hardware wallet giving its companion app an XPUB so the app can display incoming transactions.
  • Accounting or auditing tools using XPUBs to view all incoming transactions linked to a wallet.