Bitcoin Forum
May 12, 2024, 04:48:52 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Understanding HD Wallets  (Read 205 times)
logfiles (OP)
Copper Member
Legendary
*
Offline Offline

Activity: 1974
Merit: 1656


Top Crypto Casino


View Profile WWW
April 09, 2019, 02:37:59 AM
Merited by BitcoinGirl.Club (3), DdmrDdmr (2), Lucius (1)
 #1

WHAT IS AN HD WALLET

An HD Wallet, or Hierarchical Deterministic wallet, is a modern type of digital wallet that automatically generates a hierarchical or an ordered tree-like structure of private/public addresses (or keys) using a single master seed key based on BIP 32 (bitcoin Improvement Protocol 32)

BREAKDOWN

Normally, in Bitcoin wallets a pair of private/public(or keys) is randomly generated and this requires one to take a backup each time one attempts to create a new wallet
This process was challenging back then before the advent of HD wallets because it would become more and more complicated and cumbersome to track and backup so many private keys as the number of one’s generated addresses and transactions increased.

However, when an HD wallet is created, a single random seed (also called the 'master private key') is generated. All the other private keys (and their corresponding public addresses) that will be part of the HD wallet are generated from that single base.
All HD wallets use a variant of the standard 12-word master seed key, and each time this seed can be extended at the end by a counter value which makes it possible to automatically derive an unlimited number of new addresses as illustrated in the picture below


Image courtesy; coinsutra.com

Taking a backup of this master seed key only once means that all subsequent addresses can easily be re-created mathematically from the algorithm during restoration. 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

  • Effortless backup procedure: One needs to backup only one key (i.e. “seed key”) and it is the only backup one will ever need for all their addresses in the HD wallet
  • Generating new Bitcoin addresses made easy: One can generate as many receiving addresses every time they need to receive bitcoins as they like without ever worrying to backup each time
  • Improved security: An HD wallet also has the concept of a 'master public key'. This can be used on a website, for example, to generate all the public addresses, but cannot generate the private keys for those addresses. This makes the master public key very useful and very secure
  • Improved financial privacy: HD wallets also help one protect their financial privacy without much effort as one is able to generate different addresses for each deposit making it hard for anybody with malicious intent to track down one’s transactions so long as the culprit does not have access to the master public key

COMMON HD WALLETS

1. Ledger Nano S (Hardware wallet)
2. Trezor (Hardware wallet)
3. KeepKey (Hardware wallet)
4. Electrum (Mobile/Desktop)
5. Jaxx (Mobile/Desktop)
6. Mycelium (mobile)
7. Atomic wallet (Mobile/Desktop)
8. Coinomi (Mobile/Desktop)



REFERENCES AND MORE INFORMATION
1. https://coinrivet.com/hd-wallets-explained/
2. https://coinsutra.com/hd-wallets-deterministic-wallet/
3. https://www.reddit.com/r/Bitcoin/comments/2zctw9/hd_wallets_vs_classic_wallets/
4. https://www.investopedia.com/terms/h/hd-wallet-hierarchical-deterministic-wallet.asp

NB: Members can suggest any additional information if it's lacking.

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
1715489332
Hero Member
*
Offline Offline

Posts: 1715489332

View Profile Personal Message (Offline)

Ignore
1715489332
Reply with quote  #2

1715489332
Report to moderator
1715489332
Hero Member
*
Offline Offline

Posts: 1715489332

View Profile Personal Message (Offline)

Ignore
1715489332
Reply with quote  #2

1715489332
Report to moderator
1715489332
Hero Member
*
Offline Offline

Posts: 1715489332

View Profile Personal Message (Offline)

Ignore
1715489332
Reply with quote  #2

1715489332
Report to moderator
Bitcoin addresses contain a checksum, so it is very unlikely that mistyping an address will cause you to lose money.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
whotookmycrypto
Full Member
***
Offline Offline

Activity: 168
Merit: 214


WhoTookMyCrypto.com


View Profile WWW
April 09, 2019, 03:28:47 AM
Last edit: April 09, 2019, 06:37:23 AM by whotookmycrypto
 #2

Maybe consider talking about the disadvantages of such wallets? For example, those with the Master Public Key + any one Child Private Key would be able to generate the Master Private Key. This would compromise all Child Private Keys. There already current solutions to this though such as using hardened keys.

Also, useful to talk about the commercial applications of HD wallets. Eg. handing out different child private keys to different departments to spend funds while allowing the auditors access to verify funds via the public key.

pooya87
Legendary
*
Offline Offline

Activity: 3444
Merit: 10558



View Profile
April 09, 2019, 05:39:51 AM
Merited by suchmoon (9)
 #3

Mnemonic (BIP-39) (falsely referred to as seed or seed words) should not be confused with Hierarchical Deterministic Wallets (BIP-32) and seed (which is the random bytes used to derive all the keys from).
in short those words are your Mnemonic and when hashed using PBKDF2 key derivation function it gives you the seed used in BIP-32.

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

this is wrong.
SHA-256 is not used anywhere in BIP-32. you have your seed (the random bytes) and you perform an HMAC function on it with underlying SHA512 hash using the "Bitcoin seed" as its key to retrieve a 512 bit (64 byte) result and then split it to the key and chain code each 32 bytes.

Quote
Improved security: An HD wallet also has the concept of a 'master public key'. This can be used on a website, for example, to generate all the public addresses, but cannot generate the private keys for those addresses. This makes the master public key very useful and very secure

this also lacks privacy because you are giving that website ALL your addresses that are currently in use or will ever be used in the future.

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
mu_enrico
Copper Member
Legendary
*
Offline Offline

Activity: 2324
Merit: 2142


Slots Enthusiast & Expert


View Profile WWW
April 09, 2019, 11:19:45 AM
Last edit: April 09, 2019, 12:54:55 PM by mu_enrico
Merited by Husna QA (1)
 #4

All HD wallets use a variant of the standard 12-word master seed key
Actually not all HD wallets use 12-phrase
You can choose between from 128-bit (12-phrase) and to 256-bit (24-phrase):
*Edited, sorry bout my English

Quote
CS = ENT / 32
MS = (ENT + CS) / 11

|  ENT  | CS | ENT+CS |  MS  |
+-------+----+--------+------+
|  128  |  4 |   132  |  12  |
|  160  |  5 |   165  |  15  |
|  192  |  6 |   198  |  18  |
|  224  |  7 |   231  |  21  |
|  256  |  8 |   264  |  24  |
Source: https://github.com/bitcoin/bips/blob/master/bip-0039.mediawiki

If you confused about this theoretical explanation, you could google translate my local post https://bitcointalk.org/index.php?topic=4459504.msg41403564#msg41403564
There I explained how to get mnemonic phrases from 128-bit randomly generated entropy.

███████████████████████
████████████████████
██████████████████
████████████████████
███▀▀▀█████████████████
███▄▄▄█████████████████
██████████████████████
██████████████████████
███████████████████████
█████████████████████
███████████████████
███████████████
████████████████████████
███████████████████████████
███████████████████████████
███████████████████████████
█████████▀▀██▀██▀▀█████████
█████████████▄█████████████
███████████████████████
████████████████████████
████████████▄█▄█████████
████████▀▀███████████
██████████████████
▀███████████████████▀
▀███████████████▀
█████████████████████████
O F F I C I A L   P A R T N E R S
▬▬▬▬▬▬▬▬▬▬
ASTON VILLA FC
BURNLEY FC
BK8?.
..PLAY NOW..
Lucius
Legendary
*
Offline Offline

Activity: 3234
Merit: 5676


Blackjack.fun🎲


View Profile WWW
April 09, 2019, 12:22:03 PM
 #5

Actually not all HD wallets use 12-phrase
You can choose between 128-bit (12-phrase) and 256-bit (24-phrase):

To my knowledge Ledger and Trezor have a choice only to use 24 words (+1 extra passphrase), and KeepKey is using 12 word seed. Other desktop / mobile wallets from OP are using 12 word seed, with the exception of Coinomi which is using 18, with option to use 24 in process of installing.

As for security (backup), HD wallets are in one way very easy / simple solution (no need to backup individual private keys), but on the other hand they represent a security risk for those who do not keep backup in the right way. If hacker gets into possession of user seed, loss of funds is inevitable.

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
BitcoinGirl.Club
Legendary
*
Offline Offline

Activity: 2772
Merit: 2713


Farewell LEO: o_e_l_e_o


View Profile WWW
April 11, 2019, 08:08:03 PM
 #6

NB: Members can suggest any additional information if it's lacking.
You have done a good job. Thanks for the afford you put into this informative topic. I left +3 merit for you with the hope that this will inspire you to create more contents like this in the future.

See you around.

▄▄███████▄▄
▄██████████████▄
▄██████████████████▄
▄████▀▀▀▀███▀▀▀▀█████▄
▄█████████████▄█▀████▄
███████████▄███████████
██████████▄█▀███████████
██████████▀████████████
▀█████▄█▀█████████████▀
▀████▄▄▄▄███▄▄▄▄████▀
▀██████████████████▀
▀███████████████▀
▀▀███████▀▀
.
 MΞTAWIN  THE FIRST WEB3 CASINO   
.
.. PLAY NOW ..
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!