Home▸Articles▸Cybersecurity

HD Wallet Key Tree: 2D BIP-32 Derivation Flow

An interactive visualization of hierarchical deterministic key generation in cryptocurrency wallets, illustrating how keys are derived from a root seed.

mysimulator teamUpdated June 2026≈ 3 min read▶ Open the simulation

What is an HD Wallet Key Tree?

An HD (Hierarchical Deterministic) wallet uses a single seed to generate multiple private keys. These keys are organized in a tree structure, where each node represents a key and its children represent derived keys. The BIP-32 standard defines how these keys are generated using HMAC-SHA512.

The 2D key-tree flowchart visualizes this process, showing the hierarchical relationship between keys and allowing users to explore different derivation paths.

How Does BIP-32 Derivation Work?

BIP-32 defines a deterministic method for generating child keys from a parent key. This is achieved using HMAC-SHA512, where the parent key and an index value are used to derive a new set of private and public keys.

The derivation process ensures that if one key in the tree is compromised, only the specific path leading to that key is at risk, while other paths remain secure.

live demo · related simulation● LIVE

Security Implications of Key Leakage

In an HD wallet, a single private key can be used to derive all other keys in its subtree. If this key is compromised, the attacker gains access to all derived keys along that path.

However, if hardened derivation paths are used (indicated by a hardened index), the parent key remains secure even if a child key is leaked.

Brute-Force Attack Simulation

The simulation allows users to adjust parameters such as BIP-39 word count and attacker guess rate, demonstrating how quickly an attacker can brute-force their way through the key space.

This helps in understanding the importance of using longer seed phrases and higher entropy in generating HD wallets.

Frequently asked questions

What is BIP-32?

BIP-32 (Bitcoin Improvement Proposal 32) is a standard for hierarchical deterministic key generation, which allows the derivation of multiple keys from a single seed.

Why use hardened derivation paths?

Hardened derivation paths prevent an attacker who has compromised a child key from deriving the parent key. This enhances security by containing the attack to specific paths in the key tree.

How does HMAC-SHA512 contribute to HD wallets?

HMAC-SHA512 is used in BIP-32 to securely derive child keys from parent keys, ensuring that each derived key is unique and secure based on the parent seed.

What happens if a private key is leaked?

If a private key is leaked, an attacker can use it to access all other keys in its subtree. However, hardened paths prevent the leakage from compromising the entire tree.

Try it live

Everything above runs in your browser — open HD Wallet Key Tree: 2D BIP-32 Derivation Flow and change the parameters while it is running. Nothing is installed, nothing is uploaded, the whole model lives in one tab.

▶ Open HD Wallet Key Tree: 2D BIP-32 Derivation Flow simulation

What did you find?

Add reproduction steps (optional)