Skip to main content
ExplainerWallet CryptographyDigital Asset Custody· 6 min read· in Finance

Infinite Keys From Twelve Words: How HD Wallets Eliminated Cryptographic Backups

A single recovery phrase can generate billions of unique addresses across multiple blockchains without storing the underlying private keys. The mathematical standard behind this derivation transformed digital asset custody from a continuous data-management problem into a one-time backup.

By Bo Feng

In short

  • Hierarchical deterministic wallets use a single master seed to generate infinite unique addresses, eliminating the need to back up individual private keys.
  • The BIP-44 standard organizes these derived keys into a specific tree structure, allowing one seed phrase to manage multiple different cryptocurrencies simultaneously.
  • Extended public keys (xpubs) allow institutions to generate receiving addresses and audit balances without holding the private keys required to spend funds.

Before 2012, generating 100 new Bitcoin addresses required backing up 100 distinct private keys. If a user created a new address to receive a payment and their hard drive failed before the next backup, those funds were permanently lost.

This architecture, known as "Just a Bunch of Keys" or JBOK, made active cryptocurrency use inherently fragile. Every transaction that generated a change address created a new piece of critical data that had to be secured offline.[6]

The introduction of Bitcoin Improvement Proposal 32 (BIP-32) replaced that continuous data-management burden with a mathematical tree. A single 12- or 24-word seed phrase now acts as the root, generating an infinite number of child keys deterministically.[4]

According to Ledger's technical documentation, "Before HD wallets, you had to generate a new private key for every new address you wanted to use." Today, the wallet software stores no keys at all; it simply recalculates them from the root seed whenever they are needed.[3]

The Cryptographic Engine

The mechanism relies on a one-way hashing algorithm called HMAC-SHA512. When a user initializes a wallet, the software generates a random 512-bit master seed.[4]

This master seed is split into two halves. The left 256 bits become the master private key, while the right 256 bits become the master chain code. Together, these form an extended private key, or xprv.[4]

The HMAC-SHA512 hashing algorithm splits the master seed into a private key and a chain code.

The chain code acts as a cryptographic modifier. When combined with an index number—such as address number one, two, or three—the chain code and the parent key hash together to produce a completely new, mathematically distinct child key.[2]

Because the hashing function is deterministic, passing the exact same parent key, chain code, and index number through HMAC-SHA512 will always produce the exact same child key. The wallet does not need to remember the child; it only needs to remember the formula.[2]

"BIP32 is the standard that defines Hierarchical Deterministic wallets," Trezor notes in its architecture documentation. It allows a single secret to cascade downward into a nearly infinite structure of usable addresses.[2]

Structuring the Derivation Tree

While BIP-32 provided the engine for generating infinite keys, it did not dictate how to organize them. Without a standard structure, a wallet created on one application could not locate its funds when imported into a different application.[1]

Bitcoin Improvement Proposal 44 (BIP-44) solved this by defining a specific five-level path for key derivation. The path dictates exactly where a wallet should look for specific types of assets.[1]

The standard path follows a strict sequence: purpose, coin type, account, change, and address index. The GitHub repository for BIP-0044 states, "This BIP defines a logical hierarchy for deterministic wallets based on an algorithm described in BIP-0032."[1]

The coin type level is particularly powerful. It assigns a unique registered number to every blockchain—Bitcoin is zero, Ethereum is 60, and Litecoin is two.[1]

This means a single 12-word seed phrase can generate a dedicated, isolated branch of keys for Bitcoin, and a completely separate branch for Ethereum, without any cross-contamination of cryptographic material.[3]

Data scaling comparison: Legacy JBOK wallets versus Hierarchical Deterministic wallets.

The Data Reduction Mathematics

The shift from JBOK to hierarchical deterministic architecture fundamentally altered the data scaling laws of digital asset custody. The difference becomes stark when quantifying the cryptographic payload required for an active institutional user.[7]

A standard private key requires 32 bytes of data. Under the legacy JBOK model, an exchange or merchant generating 500 unique deposit addresses across five different blockchains would need to store 2,500 distinct private keys.[6]

That translates to 80,000 bytes of highly sensitive cryptographic material that must be continuously backed up, encrypted, and distributed to secure offline storage facilities every time a new batch of addresses is generated.[7]

An HD wallet reduces that requirement to a static 64 bytes—the single 512-bit master seed. Whether the institution generates one address or one million addresses, the backup payload never increases.[4][7]

The mathematical derivation eliminates 99.9 percent of the backup surface area for a 2,500-address operation. More importantly, it shifts the backup process from a recurring operational vulnerability to a one-time setup event.[7]

Institutional Custody and Watch-Only Wallets

Beyond data reduction, the BIP-32 standard introduced the concept of extended public keys, or xpubs. This feature separated the ability to view an account's history from the ability to spend its funds.[4]

An extended public key can generate all the public addresses in a specific branch of the derivation tree, but it cannot generate the corresponding private keys required to authorize a transaction.[2]

This separation is critical for corporate accounting and institutional custody. A company can provide its auditing firm with an xpub, allowing the auditors to monitor every incoming and outgoing transaction in real time.[5]

The BIP-44 standard defines a strict five-level path for organizing derived keys across multiple blockchains.

The auditors can generate the exact sequence of receiving addresses the company uses, verifying balances without ever holding the cryptographic authority to move the underlying assets.[5]

Researchers analyzing institutional adoption in MDPI's cryptography journal highlight this capability, noting that stateless HD wallet custody allows for scalable infrastructure where web servers can generate deposit addresses without holding private keys in memory.[5]

If a web server holding an xpub is compromised by a malicious actor, the attacker only gains privacy-compromising information—the knowledge of which addresses belong to the company—but cannot steal the funds.[5]

Vulnerabilities and Edge Cases

The mathematical link between parent and child keys introduces a specific cryptographic edge case. If an attacker acquires both a parent extended public key and a single child private key, the mathematics can be reversed.[6]

This combination allows the attacker to deduce the parent private key, compromising the entire branch of the wallet. To prevent this, BIP-32 introduced "hardened" derivation.[6]

Hardened derivation breaks the mathematical link between the parent public key and the child keys. It uses the parent private key to generate the child, ensuring that a leaked child private key cannot compromise the parent.[4]

Illustration: Extended public keys allow web servers to generate deposit addresses without holding the private keys required to spend funds.

The Bitcoin Wiki's technical documentation on deterministic wallets specifies that hardened keys are denoted by an apostrophe in the derivation path, such as `m/44'/0'/0'`.[6]

This hardening is applied at the account level and above. It ensures that if a user exports the private key for a specific account to a third-party application, they do not accidentally expose their master seed or their other accounts.[1]

The architecture of hierarchical deterministic wallets demonstrates how cryptographic standards evolve. By replacing data storage with deterministic computation, the industry solved its most pressing usability flaw without compromising cryptographic security.[7]

How we did this

Method
Recomputation of cryptographic backup payload scaling across legacy and deterministic wallet architectures.
What we found
An HD wallet reduces the backup surface area by 99.9% for a 2,500-address institutional operation, shifting custody from a continuous data-management problem to a static 64-byte one-time backup regardless of transaction volume.
What we worked from
  • Legacy private key size: 32 bytes — Bitcoin Wiki
  • HD master seed size: 512 bits (64 bytes) — River
Limits of this analysis
This analysis assumes standard 256-bit elliptic curve cryptography and does not account for the additional metadata storage required for wallet labeling or transaction history.

Definitions

BIP-32
The Bitcoin Improvement Proposal that introduced hierarchical deterministic wallets, allowing one seed to generate a tree of keys.
Extended Public Key (xpub)
A cryptographic key that can generate all public addresses in a specific wallet branch but cannot authorize transactions.
HMAC-SHA512
The specific cryptographic hashing algorithm used to combine a parent key and a chain code to derive a new child key.
Hardened Derivation
A security mechanism that breaks the mathematical link between a parent public key and its child keys to prevent reverse-engineering.

Questions & answers

Can an HD wallet generate addresses for different blockchains?

Yes. The BIP-44 standard allocates specific 'coin type' numbers to different blockchains, allowing a single master seed to generate separate, isolated key branches for Bitcoin, Ethereum, and other networks.

What happens if the wallet software company goes out of business?

Because the derivation mathematics are open standards, a user can enter their 12- or 24-word seed phrase into any other compatible wallet software to recalculate their keys and access their funds.

Does generating a new address require an internet connection?

No. The address generation is purely mathematical. A wallet can derive billions of valid receiving addresses completely offline.

Analysis by camp

Protocol Developers

Focus on standardization and cross-compatibility between different wallet software.

Engineers prioritizing BIP-32 and BIP-44 standards argue that deterministic derivation is useless if a user cannot import their seed phrase into a competing application. They advocate for strict adherence to derivation paths to prevent users from losing access to funds simply because a specific wallet company ceases operations.

Institutional Custodians

Prioritize the separation of viewing rights from spending rights.

Enterprise custody providers rely heavily on extended public keys (xpubs) to build stateless infrastructure. By keeping private keys strictly in cold storage while placing xpubs on internet-connected web servers, they can generate infinite deposit addresses for clients without exposing cryptographic spending authority to network breaches.

Security Researchers

Highlight the risks of unhardened derivation paths and leaked child keys.

Cryptographers warn that the mathematical elegance of HD wallets introduces specific edge cases. If a user exports an unhardened extended public key and a single child private key is compromised, an attacker can reverse the HMAC-SHA512 hash to deduce the master private key, compromising the entire tree.

Protocol Developers 35%Institutional Custodians 35%Hardware Manufacturers 30%
Protocol Developers
Focus on standardization and cross-compatibility between different wallet software.
Institutional Custodians
Prioritize the separation of viewing rights from spending rights for scalable infrastructure.
Hardware Manufacturers
Focus on securing the master seed and preventing the extraction of child keys.

Perspectives this story doesn't cover

  • Retail users who struggle with seed phrase storage
  • Regulators analyzing the auditability of xpubs

Sources

Source coverage

7 outlets

3 viewpoints surfaced

Protocol Developers 35%Institutional Custodians 35%Hardware Manufacturers 30%
  1. [1]GitHubProtocol Developers

    bips/bip-0044.mediawiki at master · bitcoin/bips

    Read on GitHub →
  2. [2]TrezorHardware Manufacturers

    What is BIP32? How hierarchical deterministic wallets work

    Read on Trezor →
  3. [3]LedgerHardware Manufacturers

    What Is a Hierarchical Deterministic (HD) Wallet?

    Read on Ledger →
  4. [4]RiverInstitutional Custodians

    BIP 32 (Hierarchical deterministic wallets)

    Read on River →
  5. [5]MDPIInstitutional Custodians

    Stateless Hierarchical Deterministic Wallet Custody for Institutional Blockchain Adoption

    Read on MDPI →
  6. [6]Bitcoin WikiProtocol Developers

    Deterministic wallet

    Read on Bitcoin Wiki →
  7. [7]Factlen Editorial Team

    Synthesis by Factlen editorial team

    Read on Factlen Editorial Team →

Comments

Stay informed

Every angle. Every day.

Get Finance stories with full source coverage and perspective breakdowns, free every day.