Bitcoin Forum
May 01, 2024, 10:35:48 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Is it possible to derivate all btc address wihout a master xpub key?  (Read 143 times)
Bitcoin.PN (OP)
Copper Member
Newbie
*
Offline Offline

Activity: 28
Merit: 24

Bitcoin.PN - Bitcoin Play Network Coming Soon!


View Profile WWW
April 18, 2022, 12:07:47 AM
Merited by o_e_l_e_o (4), DdmrDdmr (3)
 #1

I've been messing with bitcoin for years since 2015, and I just had this question. Is it possible to derivate all addresses of a master public key?

like say I have address X, and with only knowing that, would it be possible to see all addresses or even know a possible master public key?

Could it be possible at all to recover a master xpub from just 1 address?

Bitcoin.PN - Bitcoin Play Network Coming Soon!
1714559748
Hero Member
*
Offline Offline

Posts: 1714559748

View Profile Personal Message (Offline)

Ignore
1714559748
Reply with quote  #2

1714559748
Report to moderator
1714559748
Hero Member
*
Offline Offline

Posts: 1714559748

View Profile Personal Message (Offline)

Ignore
1714559748
Reply with quote  #2

1714559748
Report to moderator
1714559748
Hero Member
*
Offline Offline

Posts: 1714559748

View Profile Personal Message (Offline)

Ignore
1714559748
Reply with quote  #2

1714559748
Report to moderator
"You Asked For Change, We Gave You Coins" -- casascius
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714559748
Hero Member
*
Offline Offline

Posts: 1714559748

View Profile Personal Message (Offline)

Ignore
1714559748
Reply with quote  #2

1714559748
Report to moderator
Charles-Tim
Legendary
*
Offline Offline

Activity: 1526
Merit: 4833



View Profile
April 18, 2022, 12:26:31 AM
Merited by o_e_l_e_o (4), pooya87 (3), ABCbits (2), DdmrDdmr (2), jackg (1)
 #2

Is it possible to derivate all addresses of a master public key?
The addresses of hierarchical deterministic (HD) wallet can be derived from the seed phrase, the seed or master private key.

Also the addresses can be derived from the master public key but you can not spend from this later kind of wallet.

like say I have address X, and with only knowing that, would it be possible to see all addresses or even know a possible master public key?
No.

Could it be possible at all to recover a master xpub from just 1 address?
No.

Master public key can be used to generate its bitcoin addresses. This is used in watch-only wallet. But with master public key, you can not spend using the wallet. To spend, you need the master private key.

You can not use addresses to know master public key.

To make this simple for you in brief. Seed phrase can generate the seed, the seed can generate the master private key, the master private key can generate the child keys (child private key and the child public key), individual child key can generate its corresponding address.

To know more:
https://github.com/bitcoinbook/bitcoinbook/blob/develop/ch05.asciidoc

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
o_e_l_e_o
In memoriam
Legendary
*
Offline Offline

Activity: 2268
Merit: 18509


View Profile
April 18, 2022, 08:49:00 AM
Merited by NeuroticFish (3), DdmrDdmr (2)
 #3

Generating any child key from any parent key involves a one way hash function which cannot be reversed. This is true for all key generation in bitcoin, including generating a single address from a master public key. You cannot go backwards up the chain from a single address or public key, or indeed from many addresses or public keys, and calculate the parent key from which they were derived (unless you have additional information from somewhere else).

Could it be possible at all to recover a master xpub from just 1 address?
Even if I knew a million addresses from your wallet, I couldn't recover your parent public key.
Bitcoin.PN (OP)
Copper Member
Newbie
*
Offline Offline

Activity: 28
Merit: 24

Bitcoin.PN - Bitcoin Play Network Coming Soon!


View Profile WWW
April 18, 2022, 02:58:38 PM
 #4


Even if I knew a million addresses from your wallet, I couldn't recover your parent public key.

That's very interesting. But, unless you had the master xpub key, there's NO WAY to know all of my addresses; UNLESS you use them together, like:

Address A has 1 BTC
Address B has 2 BTC

And then you create a tx of 2.5BTC to Address C and 0.5btc to Address (change address) D.

That way, you would be able to see that Address A, B, C and D are all connected, but other than that, there's no chance to see all other addresses Smiley

Bitcoin.PN - Bitcoin Play Network Coming Soon!
o_e_l_e_o
In memoriam
Legendary
*
Offline Offline

Activity: 2268
Merit: 18509


View Profile
April 18, 2022, 03:45:33 PM
 #5

That's very interesting. But, unless you had the master xpub key, there's NO WAY to know all of my addresses; UNLESS you use them together, like:

Address A has 1 BTC
Address B has 2 BTC

And then you create a tx of 2.5BTC to Address C and 0.5btc to Address (change address) D.
Combining inputs from different addresses together in the same transaction is a strong indicator those addresses are owned by the same entity. In many transactions it is also possible to identify which output is probably the change (unless you actively take steps to obfuscate this information), and so again you can link this address to the same owner as the inputs.

That way, you would be able to see that Address A, B, C and D are all connected, but other than that, there's no chance to see all other addresses Smiley
That's not accurate though. There are many ways that people leak all the addresses in their wallet to third parties. The most common is by not running your own node. Any wallet which is not Bitcoin Core or is being pointed at your own node/server must connect to a third party server to query the history of the addresses in the wallet. When you do this, you send all the addresses in your wallet to the server and the server looks them up for you and send backs the balance and relevant history for those address. By doing so, the server can therefore link all the addresses in your wallet together.
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!