-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathHD_wallet_seed
13 lines (9 loc) · 1.4 KB
/
HD_wallet_seed
1
2
3
4
5
6
7
8
9
10
11
12
13
An HD (Hierarchical Deterministic) wallet seed is a sequence of words that can be used to generate the entire tree of keys in an HD wallet. This seed is typically 12 or 24 words long and is used as the starting point for generating the master key and all subsequent child keys.
The seed phrase is generated using a specific algorithm that ensures that the resulting keys are deterministic and can be regenerated using only the seed phrase. This allows users to easily back up and restore their wallet without the need to back up each individual key.
Here's an example of how an HD wallet seed might be used to generate a new key pair:
A master key is generated from the seed phrase.
A chain code is generated from the master key.
A child key is generated by combining the chain code with a specific index number.
A new address and private key are derived from the child key.
This process can be repeated for an unlimited number of child keys, allowing for the generation of an unlimited number of unique addresses and private keys. By using this hierarchical structure, an HD wallet can significantly simplify the process of backing up and restoring a wallet, while still maintaining a high level of security.
It's important to keep the seed phrase secure and to never share it with anyone. Anyone with access to the seed phrase can regenerate the entire tree of keys and gain access to all of the funds associated with the wallet.