Book a free call

What Is an HD Wallet, and How Does It Work?

An HD wallet creates every address from one seed phrase, so a single backup covers all your crypto. Learn how derivation works and why white-label wallets use it.

Hertiv engineering teamReviewed by a senior engineer
6 min read
What Is an HD Wallet, and How Does It Work?
On this page

Short answer

An HD wallet is a cryptocurrency wallet that creates all its addresses from one seed phrase, using a standard derivation path. One backup restores every address the wallet has ever made, and each payment can use a fresh address without a new backup. White-label wallets use HD design because it keeps key management simple for the operator and the user.

What is an HD wallet?

An HD wallet, short for hierarchical deterministic wallet, is a cryptocurrency wallet that creates all its addresses from one master seed. The seed is usually shown as a list of 12 or 24 words, called a seed phrase, and from that seed the wallet can derive an almost unlimited number of addresses in a fixed order.

The word hierarchical refers to the tree structure: one master key sits at the top, and child keys branch below it for accounts, chains and individual addresses. The word deterministic means the same seed always produces the same tree, so the wallet can be rebuilt exactly from the seed phrase alone.

This design comes from a Bitcoin standard called BIP-32, with the seed phrase format defined in BIP-39 and the account layout in BIP-44. Most modern wallets follow these standards, which is why a seed phrase from one wallet can often restore the same addresses in another.

How does an HD wallet create addresses?

An HD wallet creates addresses in three steps. First it turns the seed phrase into a master private key. Then it derives child keys along a path, such as m/44'/60'/0'/0/0 for an Ethereum account. Finally it turns each child private key into a public address that can receive funds.

Path partWhat it meansExample
PurposeWhich standard the path follows44' for BIP-44
Coin typeWhich chain the key is for60' for Ethereum, 0' for Bitcoin
AccountWhich account under the seed0' for the first account
ChangeReceiving or change addresses0 for receiving, 1 for change
Address indexWhich address in the account0, 1, 2 and so on

Each part of the path is just a number, and changing any number produces a different key. The wallet keeps a record of which paths it has used, so it can find every address again after a restore. Because the path is a standard, any wallet that follows the same standard derives the same addresses from the same seed.

HD wallets vs single-key wallets

Before HD wallets, each address needed its own private key, and each key needed its own backup. HD changed that by making one seed the source of every key. The table below shows the practical difference.

FeatureHD walletSingle-key wallet
BackupOne seed phrase covers all addressesOne private key per address
New addressesUnlimited, derived from the seedEach needs a new key
PrivacyFresh address per paymentAddress reuse is common
RecoveryOne phrase restores everythingEach key must be backed up
ComplexityNeeds derivation logicSimple, one key at a time

The privacy row matters most for everyday use. Reusing one address lets anyone watching the chain link all your payments together, while a fresh address per payment keeps them separate. HD makes fresh addresses free, so there is no reason to reuse one.

Why do white-label wallets use HD design?

White-label wallets use HD design because one operator serves many users, and HD keeps that manageable. Each user gets their own branch of the tree, so deposits land in a separate address per user while the operator holds a single master seed for backup.

HD also makes accounting easier. Because each user has their own addresses, incoming payments can be matched to the right account without asking the user for a reference. And when the operator rotates addresses for privacy, the new addresses still come from the same seed, so nothing extra needs backing up.

For the user, the benefit is a simpler backup. One seed phrase, written down once and stored safely, covers every address the wallet will ever create for them. That is far easier to explain in onboarding than a list of private keys. For a closer look at the wider wallet market, see the best crypto wallets to compare.

How do you build with HD wallets?

Building with HD wallets means wiring the derivation path into your wallet code and treating the seed as the most sensitive data in the system. The steps below are the usual order.

  1. Choose a tested HD library. Use a well-known library for your stack rather than writing derivation code from scratch.
  2. Generate the seed on the device. Create the seed phrase where the user controls it, and never send it to your servers in plain text.
  3. Encrypt the seed at rest. Store it encrypted with a key the user supplies, such as a PIN or a device key.
  4. Derive one branch per user. Give each account its own path so deposits and withdrawals stay separate.
  5. Build the backup and restore flow. Let users write down the seed phrase and test it before they deposit funds.
  6. Test recovery on a fresh install. Restore from the seed alone and check that every address and balance comes back.

Most of the work is in the backup and restore flow, not the cryptography. If users cannot back up and restore with confidence, the wallet is not ready to ship. The white-label wallet development guide covers the wider build in more detail.

How do you keep an HD wallet safe?

The seed phrase is the whole wallet, so protecting it is the whole job. It should be written on paper or stamped on metal and stored somewhere safe, never photographed, emailed or pasted into a chat. Anyone who sees the seed can take every address it controls.

A passphrase adds a second layer: an extra word the user chooses, which changes every derived key. With a passphrase set, the seed phrase alone is not enough to restore the wallet. Hardware wallets add a third layer by keeping keys on a device that never exposes them to a computer.

Teams should also plan for staff changes. If one person holds the only copy of a seed, the wallet is one resignation away from being lost. Split the backup across trusted people or use a multi-signature setup so no single person can move funds alone. Costs for building this kind of wallet are covered in the crypto wallet development cost guide.

Example (hypothetical): a white-label wallet for a small exchange

Example (hypothetical): a small exchange launches a white-label wallet and onboards 500 new users a month. Each user gets one deposit address, so after a year the wallet holds 6,000 addresses, all derived from a single seed phrase.

The support team handles 40 wallet restores a month. With HD design, each restore takes about 20 minutes using the seed phrase, or 800 minutes a month, which is about 13 hours of support time. If every address had its own key, the team would need to track 6,000 separate backups instead of one.

The exchange also rotates deposit addresses each month for privacy. Because the new addresses come from the same seed, the rotation needs no new backup. The arithmetic is the point: 500 users a month for 12 months is 6,000 addresses, and one seed phrase still covers all of them.

What are the common mistakes?

The most common HD wallet mistakes are treating the seed phrase casually, skipping the restore test, and mixing up derivation paths.

  • Storing the seed digitally. A screenshot or a note in a cloud drive is one breach away from an empty wallet.
  • Never testing recovery. A backup that has never been restored is a guess, not a backup.
  • Using non-standard paths. Custom derivation paths can make a wallet unrestorable in other software.
  • Sharing one seed across products. A seed used in two places doubles the ways it can leak.
  • Forgetting the passphrase. A passphrase is part of the key; losing it locks the wallet even with the seed.

Key takeaways

  • An HD wallet derives every address from one seed phrase, so one backup covers the whole wallet
  • Derivation paths such as m/44'/60'/0'/0/0 decide which key and address each branch produces
  • Fresh addresses per payment keep transactions separate, which a single-key wallet cannot do cheaply
  • White-label wallets use HD so each user gets their own branch while the operator holds one seed
  • The seed phrase is the whole wallet: store it offline, test the restore, and never share it

Frequently asked questions

What does HD mean in a crypto wallet?

HD stands for hierarchical deterministic. Hierarchical means keys branch from one master key in a tree, and deterministic means the same seed phrase always produces the same tree, so the wallet can be rebuilt exactly from the seed alone.

How many addresses can one seed phrase create?

In practice, as many as you need. Each address is one step further along a derivation path, and the path numbers can keep rising. Wallets usually create addresses one at a time and stop when they find a run of unused ones.

Is a seed phrase the same as a private key?

No. A seed phrase generates a master private key, and that key generates all the child keys. The seed phrase is the backup for the whole tree, while a private key controls one address only.

Can I use the same seed phrase in two wallets?

Yes, if both wallets follow the same standards, usually BIP-32, BIP-39 and BIP-44. The second wallet derives the same addresses from the same seed. Using one seed in two places does increase the risk if either wallet is compromised.

What happens if I lose my seed phrase?

The wallet cannot be restored. There is no password reset for a seed phrase, and no company can recover it for you. That is why the backup step matters more than any other part of setting up a wallet.

What is a derivation path?

A derivation path is a list of numbers, such as m/44'/60'/0'/0/0, that tells the wallet which branch of the key tree to use. The numbers pick the standard, the chain, the account, the receiving or change branch, and the address index.

Found this useful? Share it.
Hertiv engineering team

Written from projects we build for clients: blockchain systems in production. Every post is reviewed by a senior engineer before publishing and updated when practice changes.

About HertivHow we work

Building a white-label wallet with HD key management? Talk to Hertiv.

A senior engineer replies within one business day. Or see our Crypto Wallet service.

Book a free call

Keep reading

All posts

Tell us what you want to build

A senior engineer reads every request and replies within one business day with questions, a rough range, or a call link.

  • NDA on request before any details
  • You own all code, models and IP
  • US, UK and EU time-zone overlap

Your email app should open with your message ready to send. If it does not, write to contact@hertiv.com.

Prefer email? Write to contact@hertiv.com
Estimate costBook a call