What are HD Wallets? (Hierarchical Deterministic) With Examples

By this time, you must have heard about cryptocurrency wallets.

If not, then do consider reading our detailed guide here:

But let’s explore what a wallet really is…

Here I will be using the example of Bitcoin as most of you are familiar with it, but this applies to almost all cryptocurrencies and their supporting wallets.

So in short, the place where you have both your Bitcoin address to receive bitcoins and the private key to send/spend bitcoins is called a Bitcoin wallet.

In an even more simplified way, a wallet is a digital file which stores your bitcoins.

  • Bitcoin Address + Private Key = Bitcoin Wallet
Bitcoin Wallet

Since the inception of Bitcoin and other cryptocurrencies, numerous types of wallets have mushroomed. And why not? Wallets are the fundamental user interface through which a person interacts with the cryptocurrency system.

With a simple Bitcoin wallet, you can be your own bank and move across borders without any questions asked.

Isn’t it amazing!?

But this was actually not possible in the early days of Bitcoin when HD wallets” were not yet there.

Typically, in Bitcoin wallets, a pair of private/public addresses (or keys) is randomly generated. This requires you to take a backup each time you make a new pair of addresses.

However, at the start, you might feel that this process is easy. But slowly, it will become more and more complicated and cumbersome to track/backup so many private/public addresses as the number of your transactions increase.

Moreover, if you are a person who cares about financial privacy and does frequent transactions, then you might need to generate a lot of private/public pair of addresses (or keys).

Which means more backups!

On the other hand, some wallets re-use the same Bitcoin address for all transactions to avoid losses, which can happen from the loss of a backup. This is not a very healthy practice and can compromise your financial privacy.

And that’s why HD wallets were developed under the BIP 32 (aka Bitcoin Improvement Proposal 32).

What are HD (Hierarchical Deterministic) Wallets?

What are HD Wallets

Imagine how easy it would be if there were a mechanism to somehow generate a pattern of public/private keys that couldn’t be guessed and needed no complicated backup.

Well, there is!

Such easy to use wallets are called HD wallets.

HD is an abbreviation for Hierarchical Deterministic. All HD wallets use 12-word master seed keys. Each time this seed is appended by a counter at the end and is used to derive seemingly unlimited new Bitcoin addresses hierarchically and sequentially.

Since all the address are derived from a single master seed, you only need to worry about backing it up. That’s why it is called Hierarchical Deterministic

What happens inside an HD wallet?

HD wallets generate a hierarchical tree-like structure of keys which start from the seed master key based on BIP 32. When you restore an HD wallet using the seed key, the wallet goes ahead and drives all the private keys of the tree using BIP 32.

And as soon as the scanning of keys is completed on the network…

Ta da! You are done, and your funds are recovered!

While using an HD wallet, the backing up of the seed key is mandatory and should be kept safe so that you can restore your wallet in case your device is lost or damaged.

And this is the beauty of HD wallets. Taking a backup only once means that all subsequent addresses can easily be re-created mathematically from the algorithm. HD wallets use a one-way SHA-256 hash algorithm which produces this tree of keys without any error if the input (or seed key) is the same.

Advantages of HD Wallets

  • You need to backup only one key (i.e. “seed key”). It is the only backup you will ever need.
  • You can generate many receiving addresses every time you receive bitcoins.
  • You can protect your financial privacy.
  • Confuse new users, as your receiving address changes every time.

Popular HD Wallets

There are various types of HD wallets available now in the market. Some of them are paid and some are free. Here is the list of the most popular ones:

S.NoWallet
Name
Type of walletAvailable Platforms Paid/FreeKey Features
1Ledger Nano XHardware WalletWindows,
Mac,
Linux
Best buy at $65HD Wallet
2TrezorHardware WalletWindows,
Linux,
OS X
Best buy at $99HD Wallet
3KeepKeyHardware WalletWindows,
Mac,
Linux
Best buy at $99HD Wallet
4MyceliumMobileAndroidFreeHD Wallet
5ElectrumDesktopWindows,
OSX,
Linux
FreeHD Wallet
6Atomic WalletMobile/DesktopWindows,
Mac, Linux, Debian, Fedora
FreeHD Wallet

I hope this insight on HD wallets will help you in making the right choice for yourself.

Do let me know which HD wallet you are using for your bitcoins or altcoins in the comments section below.

And if you find this post useful, do share it with your friends on Facebook & Twitter! 

For further reading:

Was this helpful?

Thanks for your feedback!

14 thoughts on “What are HD Wallets? (Hierarchical Deterministic) With Examples”

  1. Ram Mohan R

    Nice article. Due to high demand, hardware wallets are difficult to find in stock most of the times.

    1. Sudhir Khatwani

      Hey Ram,

      I would say it is a very wise decision. When you grab hold of your Ledger you may need this introductory video series on Ledger Nano S.

  2. Hi Sudir,

    Great article! A HD wallet can contain multiple private keys of different coins (Bitcoin, Ethereum, etc), am I right?

    1. Sudhir Khatwani

      yeah true.
      Also depends upon how many coins that particular HD wallet is supporting.

  3. deepak

    it was a nice article. but i want to know if i give a new address every time will they be stored in my main original wallet or different wallets and how can i spend them through my wallet.
    looking forward to your reply.
    thank you.

  4. matt

    Very very informative. But I do have a question.
    1) If there are only 12 words and millions of people eventually creating HD wallets then it seems certain that some people will use the same 12 words and get access to each others private keys. What prevents that?
    2) When in recovery mode, how does the algorithm know when to stop generating new keys? Let’s say I used the wallet once and generated one private key. Then I had to recover that key. Will this wallet know to generate only one key? if so then how?
    Thank you

    1. Sudhir Khatwani

      1) It doesn’t happen, the combinations are just too many. Please read this for more detailed insights.
      2) These hash functions that generate keys are deterministic in nature for a given input. So every time you put the similar seed during recovery you will get same keys. And till 50th key, your wallet will keep checking for balances and if it hasn’t found it till that time, it will calculate more keys.

      Hope this helps:)

      1. matt

        Hi Sudhir. I was also confused by who chooses the seed – the user or the software. I read many conflicting blogs and even the BIP was not that clear to me. But I found what I think was the best explination here: http://ledger.readthedocs.io/en/latest/background/master_seed.html
        This makes it clear that the software chooses the words. I assume that all other HD wallets do something similar but I know that some use less seed words.

  5. mike

    Hi
    nice article
    what will happen if i enter an HD public key into a wallet which doesn’t support the HD?

    thanks

    1. Sudhir Khatwani

      It should reflect independently. Which wallet?

  6. Sean

    If Buyer defaults payment, is there any chance with multi HD wallet that I can recover my BTC from the defaulted Buyer?
    Thanks.

  7. Yaln

    Let’s take the example of Exodus, an HD wallet if we activate the “Multiple addresses” property.
    Suppose a friend sends me Bitcoin today to my current receiving address. This will cause a change of address.
    Suppose now that this friend makes a new Btc sending 2 weeks later using the same destination address as during his first Btc sending. I assume that Exodus will be able to correctly receive this second Btc sending even if the address has changed since then.
    Right?

Leave a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Subscribe to stay updated

Learn Profitable Crypto Trading and receive our free resources to master automated bot 🤖 trading strategies.

(We respect your privacy.)

Coinsutra logo

CoinSutra provides general cryptocurrency and blockchain information for educational purposes only. Content on CoinSutra’s website and social media is not financial, investment, trading, or professional advice. Readers should conduct independent research and consult a licensed advisor before making investment decisions.

CoinSutra does not recommend or endorse specific cryptocurrencies, projects, platforms, products, exchanges, wallets, or other offerings. Opinions shared by CoinSutra writers are their personal views only and should not be relied upon for financial choices.

CoinSutra writers are not certified financial advisors or brokers. Cryptocurrency activities like purchasing, trading, holding, and selling have inherent risks. Readers should exercise due diligence before participating. CoinSutra and its writers are not responsible for any investment losses from acting on website or social media content. Visitors participate at their own risk.



Scroll to Top
113 Shares