Bitcoin Forum
April 19, 2024, 05:43:09 AM *
News: Latest Bitcoin Core release: 26.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Difference Between BTC Main Address & Child Address?  (Read 221 times)
Bestly (OP)
Jr. Member
*
Offline Offline

Activity: 82
Merit: 5


View Profile
July 28, 2018, 07:13:54 PM
 #1

Before long Imtoken app started having wallet Bitcoin wallet aside the Ethereum wallet it used to have.
Now, in the Bitcoin wallet inside Imtoken app, there is the Main Address and then Child Address, different from each other.

Can anyone who knows the difference please elucidate on this? How are they related please?

▀▀▀▀▀▀▀▀▀▀▀▀▀▀
FXPay.IO ║ A Decentralized Gateway to The World's Digital Ecosystem (https://fxpay.io/)
▄▄▄▄▄▄▄
1713505389
Hero Member
*
Offline Offline

Posts: 1713505389

View Profile Personal Message (Offline)

Ignore
1713505389
Reply with quote  #2

1713505389
Report to moderator
1713505389
Hero Member
*
Offline Offline

Posts: 1713505389

View Profile Personal Message (Offline)

Ignore
1713505389
Reply with quote  #2

1713505389
Report to moderator
Once a transaction has 6 confirmations, it is extremely unlikely that an attacker without at least 50% of the network's computation power would be able to reverse it.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1713505389
Hero Member
*
Offline Offline

Posts: 1713505389

View Profile Personal Message (Offline)

Ignore
1713505389
Reply with quote  #2

1713505389
Report to moderator
jackg
Copper Member
Legendary
*
Offline Offline

Activity: 2856
Merit: 3071


https://bit.ly/387FXHi lightning theory


View Profile
July 28, 2018, 07:21:31 PM
 #2

Can you post an example of each?

Does a main address begin with a 1/3/bc1? If so, it's a Bitcoin address, if not, it's a public key that can derive your other addresses.

If not, one might be a change and the other a regular receiving address... 
tarball
Jr. Member
*
Offline Offline

Activity: 98
Merit: 5


View Profile
July 28, 2018, 07:49:14 PM
 #3

Can you post an example of each?

Does a main address begin with a 1/3/bc1? If so, it's a Bitcoin address, if not, it's a public key that can derive your other addresses.

If not, one might be a change and the other a regular receiving address...  

I think you mean it's a 'master public key', not a 'public key' because a public key can only derive one bitcoin address (unless you have the chain code and index number and I doubt that the wallet would show those). I could be wrong though.

Thanks for reading my post.
jackg
Copper Member
Legendary
*
Offline Offline

Activity: 2856
Merit: 3071


https://bit.ly/387FXHi lightning theory


View Profile
July 29, 2018, 10:13:38 AM
 #4

Can you post an example of each?

Does a main address begin with a 1/3/bc1? If so, it's a Bitcoin address, if not, it's a public key that can derive your other addresses.

If not, one might be a change and the other a regular receiving address...  

I think you mean it's a 'master public key', not a 'public key' because a public key can only derive one bitcoin address (unless you have the chain code and index number and I doubt that the wallet would show those). I could be wrong though.

Yes you're right.
Although both the master public key and addresses are public keys. Just the xpub isn't accepted in the network for transactions.

Addresses are hashes of their private keys.
Master public keys are hashes of their xprv/master private keys.

Meanwhile, if ETF is right, the master public key can be derived from the two private keys (or potentially addresses) of the main and child address.
ranochigo
Legendary
*
Offline Offline

Activity: 2954
Merit: 4158


View Profile
July 30, 2018, 02:35:07 PM
 #5

Meanwhile, if ETF is right, the master public key can be derived from the two private keys (or potentially addresses) of the main and child address.
There's no main or child address. The master private and public keys are the "main" keys while any addresses generated are the child keys.

The master public key can't be derived from two addresses or else it would be pretty flawed and we wouldn't be using it anymore. You can, however derive the master private key using one of the child private key and the master public key with little difficulty. It applies to all unhardened keys (ie. those with master public key).

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

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

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

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

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

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











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











▄▄▄▄█
jackg
Copper Member
Legendary
*
Offline Offline

Activity: 2856
Merit: 3071


https://bit.ly/387FXHi lightning theory


View Profile
July 30, 2018, 04:02:54 PM
 #6

Meanwhile, if ETF is right, the master public key can be derived from the two private keys (or potentially addresses) of the main and child address.
There's no main or child address. The master private and public keys are the "main" keys while any addresses generated are the child keys.
The main address as ETF said is the address that is used for recieving and the child address is the change address (nothing to do with master keys)

The master public key can't be derived from two addresses or else it would be pretty flawed and we wouldn't be using it anymore. You can, however derive the master private key using one of the child private key and the master public key with little difficulty. It applies to all unhardened keys (ie. those with master public key).

Hardened ones have a ' at the end of the derivation path don't they (or had I got that wrong)?
ranochigo
Legendary
*
Offline Offline

Activity: 2954
Merit: 4158


View Profile
July 30, 2018, 04:25:34 PM
 #7

The main address as ETF said is the address that is used for recieving and the child address is the change address (nothing to do with master keys)
Oh okay I get what you mean.

Hardened ones have a ' at the end of the derivation path don't they (or had I got that wrong)?
Yup. BIP44 states that an apostrophe means that the path is hardened. If your derivation path is hardened, xpub can't be generated. Without the xpub, you cannot use a child private key and the (non-existent) xpub to generate the master private key.

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

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

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

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

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

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











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











▄▄▄▄█
HCP
Legendary
*
Offline Offline

Activity: 2086
Merit: 4316

<insert witty quote here>


View Profile
July 30, 2018, 10:06:35 PM
Merited by Welsh (3)
 #8

Now, in the Bitcoin wallet inside Imtoken app, there is the Main Address and then Child Address, different from each other.

Can anyone who knows the difference please elucidate on this? How are they related please?
Looking at the "Imtoken" specific case... Their definition of "Main Address" and "Child Address" is simply what ETF stated earlier...

looks like Main address is the first bitcoin address that created with xPub and Child address is the 2nd/later bitcoin address created with xPub which isn't used yet.

That is to say that:
"Main Address" = m/44'/0'/0'/0/0
"Child Address" = m/44'/0'/0'/0/1, m/44'/0'/0'/0/2... m/44'/0'/0'/0/n

I guess they have done this so that users will think they have a "fixed" address. I have seen a lot of newbies get confused when an HD wallet starts spitting out new receive addresses and get concerned that they're going to lose coins.

This Main/Child address system that Imtoken have created looks like an attempt to try and ease these concerns by pretending that you have both a (fixed) "main" address... but can also generate multiple unique addresses if you want.


The main address as ETF said is the address that is used for recieving and the child address is the change address (nothing to do with master keys)
No... it isn't "receive" and "change"... they're all "receive" addresses... the screen shows xpub 0/0 and xpub 0/1...

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


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
danitech
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile
August 06, 2018, 09:52:58 AM
 #9

i think If you use the same address to receive Bitcoin, everyone can track all your transaction records easily. By creating a new address, a child address, you are better able to maintain your privacy.
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!