Bitcoin Forum
March 06, 2026, 01:39:39 AM *
News: Latest Bitcoin Core release: 30.2 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: HD Wallets: Private Keys vs Public Keys  (Read 63 times)
Furball808 (OP)
Member
**
Offline Offline

Activity: 154
Merit: 17


View Profile
March 05, 2026, 03:01:40 PM
 #1

I made a thread before about what life was like before seed phrase and I mentioned there briefly the BIP32 or the arrival of Hierarchical Deterministic Wallets.

Quote

Since, I focused on how seed phrase came to be I thought it would be a good idea to dive deeper this time into Hierarchical Deterministic Wallet.

The passage itself is a summary. This BIP32 allowed for us to generate multiple private keys or "accounts" from only one private or master key. From each private key generated from the master key comes a public key/public address. (For those confused, a public address is the shortened version of the public key.) This public address is the one we share to the public so they can send crypto to that address. Here is an example of a public address:

Code:
1BvBPSEYmtWeeqTFn5Au5y4GFg7xJaNVN2
[2]

This is what we typically see on blockchain explorer. But take note that just because public addresses are visible to everyone doesn't mean anyone can have access to your wallet. People can however see the entire transaction history of that specific public address.

Are public addresses safe to share?

I will discuss what we call The Trapdoor Function. The trapdoor function is a function easy to compute in one direction but almost impossible to compute in the opposite direction without a specific information. This is a concept within the broad cryptography. How cryptocurrency works may be better understood with this in mind however, cryptocurrency like Bitcoin does not literally follow the trapdoor function but follows a similar concept of one-way computation which is called the Elliptic Curve Cryptography.[1]

Now this algorithm is a lot more complicated than my simple explanation of a trapdoor function. Think of ECC as this:

Quote
The main idea behind the algorithm is “dotting” a point with itself some relatively large number of times.

Let's say you have your private key, this private key is a number. You then dot a point within the elliptical curve the number of times your private key is which would generate your public key. A private key is a number priv, and a public key is the public point dotted with itself priv times.[3]

How does a public key become a public address?

This is where the process of hashing comes in. What happens in hashing is data is passed through a specific algorithm called the SHA-256 algorithm which transforms the public key to become a public address. [4]

In conclusion, your private key is your lifeline. This is what you should keep safe and not give out to random people. Your public key is public to everyone and this will not put your wallet in danger. Personally, the complexity of cryptocurrency and the intentionality of each step makes me in awe even though I know I have barely scratched the surface.


Sources:
[1] Public Address Meaning
[2] A (Relatively Easy To Understand) Primer on Elliptic Curve Cryptography
[3] Elliptic Curve Cryptography
[4] What is public key cryptography?
MusaMohamed
Sr. Member
****
Offline Offline

Activity: 1442
Merit: 407



View Profile
March 05, 2026, 03:19:25 PM
 #2

I made a thread before about what life was like before seed phrase and I mentioned there briefly the BIP32 or the arrival of Hierarchical Deterministic Wallets.
I believe the three sources are better for your references when writing about BIP32 and HD wallets.

https://github.com/bitcoinbook/bitcoinbook/blob/develop/ch05_wallets.adoc#hierarchical-deterministic-hd-key-generation-bip32
https://learnmeabitcoin.com/technical/keys/hd-wallets/
https://github.com/bitcoin/bips/blob/master/bip-0032.mediawiki

▄▄█▀███████▀█▄▄
▄█▀▄███░█████▄▀█▄
███████████████████
█████▀▀▀███████
▀█▄███▀███░███▀███▄█▀
███▀▀▀▀▀▀▀▀▀▀▀▀▀███
███▄▄████▀▀▀████▄▄███
█████▀▄▀▄█▀██████████
▐████▄█▄█▀███▀████████▌
███████▄▀▀▄███████
███████▀▀▀▀▀▀▀████████
▀█████▀▀██▄█████▄██▀▀█████▀
▀▀███▀▀

TOSHI.BET  
 
████████████████████████
███████████
████
█████████████
███
██████████████████
████████
███████████████
███████
█████████████████
██████
███████████████████
██████
███████████████████
██
████████████████████
██
███████████████████████
██
█████████████████████
███
██████████████████
█████████
████████
███████████
█████████
████████████████
█████████████████████
███████████████████████
█████████████████████████
████████
████████████████
██████
███████████████████
████
█████████████████████
███
██████████████████████
██████████████████████
███████████████████
████████████████
███████████
████████████████████████

  GOD'S CHOSEN CASINO & SPORTSBOOK


████████████████████████
 [
PLAY NOW
]
Cookdata
Legendary
*
Offline Offline

Activity: 1610
Merit: 1254


Not Your Keys, Not Your Bitcoin


View Profile
March 05, 2026, 03:38:44 PM
Merited by Charles-Tim (1)
 #3

(For those confused, a public address is the shortened version of the public key.) This public address is the one we share to the public so they can send crypto to that address. Here is an example of a public address:

Code:
1BvBPSEYmtWeeqTFn5Au5y4GFg7xJaNVN2
[2]


You did well but the wallet address or public address like you said isn't a shorten version of the public key but the public key hash. The public key is hash with sha256 and Ripemd160 functions to give public key hash. It's that hash that is encoded to give you an address format.

Like the wallet address you posted above, you can decode it to give you the public key hash but you can't get the public key of the address unless the address has received and sent out some Bitcoin transactions.

███████████████████████████
███████▄████████████▄██████
████████▄████████▄████████
███▀█████▀▄███▄▀█████▀███
█████▀█▀▄██▀▀▀██▄▀█▀█████
███████▄███████████▄███████
███████████████████████████
███████▀███████████▀███████
████▄██▄▀██▄▄▄██▀▄██▄████
████▄████▄▀███▀▄████▄████
██▄███▀▀█▀██████▀█▀███▄███
██▀█▀████████████████▀█▀███
███████████████████████████
.
.Duelbits PREDICT..
█████████████████████████
█████████████████████████
███████████▀▀░░░░▀▀██████
██████████░░▄████▄░░████
█████████░░████████░░████
█████████░░████████░░████
█████████▄▀██████▀▄████
████████▀▀░░░▀▀▀▀░░▄█████
██████▀░░░░██▄▄▄▄████████
████▀░░░░▄███████████████
█████▄▄█████████████████
█████████████████████████
█████████████████████████
.
.WHERE EVERYTHING IS A MARKET..
█████
██
██







██
██
██████
Will Bitcoin hit $200,000
before January 1st 2027?

    No @1.15         Yes @6.00    
█████
██
██







██
██
██████

  CHECK MORE > 
Charles-Tim
Legendary
*
Offline Offline

Activity: 2212
Merit: 6262


Leading Crypto Sports Betting & Casino Platform


View Profile
March 05, 2026, 04:35:20 PM
 #4

Your public key is public to everyone and this will not put your wallet in danger.
How about quantum computer's threat of the possibility to derive private key from its public key? This is not possible now, but it has remain one of the major discussions in the bitcoin community as it can be possible in the future.

Address public key can not be known to anyone until the person spends from the address, this is the reason address reuse is not advisable.

I do not like that you indicated address as something similar to public key. People should not let anyone know their public keys, but they can give people their bitcoin address.

..Stake.com..   ▄████████████████████████████████████▄
   ██ ▄▄▄▄▄▄▄▄▄▄            ▄▄▄▄▄▄▄▄▄▄ ██  ▄████▄
   ██ ▀▀▀▀▀▀▀▀▀▀ ██████████ ▀▀▀▀▀▀▀▀▀▀ ██  ██████
   ██ ██████████ ██      ██ ██████████ ██   ▀██▀
   ██ ██      ██ ██████  ██ ██      ██ ██    ██
   ██ ██████  ██ █████  ███ ██████  ██ ████▄ ██
   ██ █████  ███ ████  ████ █████  ███ ████████
   ██ ████  ████ ██████████ ████  ████ ████▀
   ██ ██████████ ▄▄▄▄▄▄▄▄▄▄ ██████████ ██
   ██            ▀▀▀▀▀▀▀▀▀▀            ██ 
   ▀█████████▀ ▄████████████▄ ▀█████████▀
  ▄▄▄▄▄▄▄▄▄▄▄▄███  ██  ██  ███▄▄▄▄▄▄▄▄▄▄▄▄
 ██████████████████████████████████████████
▄▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▄
█  ▄▀▄             █▀▀█▀▄▄
█  █▀█             █  ▐  ▐▌
█       ▄██▄       █  ▌  █
█     ▄██████▄     █  ▌ ▐▌
█    ██████████    █ ▐  █
█   ▐██████████▌   █ ▐ ▐▌
█    ▀▀██████▀▀    █ ▌ █
█     ▄▄▄██▄▄▄     █ ▌▐▌
█                  █▐ █
█                  █▐▐▌
█                  █▐█
▀▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▀█
▄▄█████████▄▄
▄██▀▀▀▀█████▀▀▀▀██▄
▄█▀       ▐█▌       ▀█▄
██         ▐█▌         ██
████▄     ▄█████▄     ▄████
████████▄███████████▄████████
███▀    █████████████    ▀███
██       ███████████       ██
▀█▄       █████████       ▄█▀
▀█▄    ▄██▀▀▀▀▀▀▀██▄  ▄▄▄█▀
▀███████         ███████▀
▀█████▄       ▄█████▀
▀▀▀███▄▄▄███▀▀▀
..PLAY NOW..
dkbit98
Legendary
*
Offline Offline

Activity: 2898
Merit: 8557


splash.tf - no KYC/AML. lowest fees


View Profile WWW
March 05, 2026, 08:22:28 PM
 #5

How about quantum computer's threat of the possibility to derive private key from its public key? This is not possible now, but it has remain one of the major discussions in the bitcoin community as it can be possible in the future.
This could be realistic threat in next few years, especially if anyone spent and sent coins from their addresses.
Bitcoin developers are taking this seriously with new BIP-360 proposal, and I already saw some wallets are planning to add them.
In the mean while best alternative is to send coins to new never before used addresses.

███████████████████████████
███████▄████████████▄██████
████████▄████████▄████████
███▀█████▀▄███▄▀█████▀███
█████▀█▀▄██▀▀▀██▄▀█▀█████
███████▄███████████▄███████
███████████████████████████
███████▀███████████▀███████
████▄██▄▀██▄▄▄██▀▄██▄████
████▄████▄▀███▀▄████▄████
██▄███▀▀█▀██████▀█▀███▄███
██▀█▀████████████████▀█▀███
███████████████████████████
.
.Duelbits PREDICT..
█████████████████████████
█████████████████████████
███████████▀▀░░░░▀▀██████
██████████░░▄████▄░░████
█████████░░████████░░████
█████████░░████████░░████
█████████▄▀██████▀▄████
████████▀▀░░░▀▀▀▀░░▄█████
██████▀░░░░██▄▄▄▄████████
████▀░░░░▄███████████████
█████▄▄█████████████████
█████████████████████████
█████████████████████████
.
.WHERE EVERYTHING IS A MARKET..
█████
██
██







██
██
██████
Will Bitcoin hit $200,000
before January 1st 2027?

    No @1.15         Yes @6.00    
█████
██
██







██
██
██████

  CHECK MORE > 
Mia Chloe
Legendary
*
Offline Offline

Activity: 1008
Merit: 2070


Contact me for your designs...


View Profile
March 05, 2026, 09:23:15 PM
 #6

Like the wallet address you posted above, you can decode it to give you the public key hash but you can't get the public key of the address unless the address has received and sent out some Bitcoin transactions.
Yeah I also agree with this. Although nodes you are connected to can see a lot of data including your IP address your public keys only become visible after a transaction. I believe  that's because you create a transaction your public key is actually revealed in the transaction signature so others can verify it.

~snip
There was a time in the past when wallets did support receiving with public keys but that didn't last because of the privacy risks and it's part of the reasons we got an HD upgrade too.

███████████████████████████
███████▄████████████▄██████
████████▄████████▄████████
███▀█████▀▄███▄▀█████▀███
█████▀█▀▄██▀▀▀██▄▀█▀█████
███████▄███████████▄███████
███████████████████████████
███████▀███████████▀███████
████▄██▄▀██▄▄▄██▀▄██▄████
████▄████▄▀███▀▄████▄████
██▄███▀▀█▀██████▀█▀███▄███
██▀█▀████████████████▀█▀███
███████████████████████████
.
.Duelbits PREDICT..
█████████████████████████
█████████████████████████
███████████▀▀░░░░▀▀██████
██████████░░▄████▄░░████
█████████░░████████░░████
█████████░░████████░░████
█████████▄▀██████▀▄████
████████▀▀░░░▀▀▀▀░░▄█████
██████▀░░░░██▄▄▄▄████████
████▀░░░░▄███████████████
█████▄▄█████████████████
█████████████████████████
█████████████████████████
.
.WHERE EVERYTHING IS A MARKET..
█████
██
██







██
██
██████
Will Bitcoin hit $200,000
before January 1st 2027?

    No @1.15         Yes @6.00    
█████
██
██







██
██
██████

  CHECK MORE > 
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!