Bitcoin Forum
July 02, 2024, 07:14:35 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How does new addresses generated on an watch-only wallet  (Read 119 times)
Diamais (OP)
Newbie
*
Offline Offline

Activity: 3
Merit: 0


View Profile
December 14, 2017, 11:57:20 AM
 #1

Hi everybody.
As far as I understand the idea, the seed is used to generate your private keys. And from private keys you generate public addresses (public keys). So you cannot generate any public key without having private key, yes ?

On the other hand, master public key is the key for creating watch-only wallet on your online computer, that can contain viruses, keyloggers and other stuff, but it is save in perspective that nowbody can spend you bitcoins, because this type of wallet does not contains any seed, private keys or password.

My question is! How does this watch-only wallet generate new addresses, while you use some of them for incoming bitcoins ?
That means, that master public key somehow generate private key, otherwise, it will be impossible to create new addresses.




TheQuin
Hero Member
*****
Offline Offline

Activity: 2576
Merit: 882


Freebitco.in Support https://bit.ly/2I9BVS2


View Profile WWW
December 14, 2017, 12:01:03 PM
 #2

A watch only wallet doesn't generate addresses, you simply enter the address you want to monitor. Generally, the idea is that you create a cold wallet off-line and then enter the addresses it generated in a watch only wallet to monitor the balance and transactions.

freebitcoin.TO WIN A  LAMBORGHINI!..

.
                                ▄▄▄▄▄▄▄▄▄▄███████████▄▄▄▄▄
                    ▄▄▄▄▄██████████████████████████████████▄▄▄▄
                    ▀██████████████████████████████████████████████▄▄▄
                    ▄▄████▄█████▄████████████████████████████▄█████▄████▄▄
                    ▀████████▀▀▀████████████████████████████████▀▀▀██████████▄
                      ▀▀▀████▄▄▄███████████████████████████████▄▄▄██████████
                           ▀█████▀  ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀  ▀█████▀▀▀▀▀▀▀▀▀▀
                   ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
Diamais (OP)
Newbie
*
Offline Offline

Activity: 3
Merit: 0


View Profile
December 14, 2017, 12:10:02 PM
 #3

Yes, it is clear that cold wallet created offline, I personally do so. But still, after I transfer this MPK to my online comp, and use some of those 20 addresses for incoming bitcoins, I notice that new addresses appeared.
TheQuin
Hero Member
*****
Offline Offline

Activity: 2576
Merit: 882


Freebitco.in Support https://bit.ly/2I9BVS2


View Profile WWW
December 14, 2017, 12:24:16 PM
 #4

That's because it is an HD (Hierarchical Deterministic) wallet

The addresses and private keys are all created from the seed phrase plus a sequence number. The Master Public Key allows it to work out what addresses will be used next. Without the seed phrase, it is not possible to work out the private keys.

https://en.bitcoin.it/wiki/Deterministic_wallet

Quote
Certain types of deterministic wallet (BIP0032, Armory, Coinkite and Coinb.in ) additionally allow for the complete separation of private and public key creation for greater security and convenience. In this model a server can be set up to only know the Master Public Key of a particular deterministic wallet. This allows the server to create as many public keys as is necessary for receiving funds, but a compromise of the MPK will not allow an attacker to spend from the wallet. They can alternatively be used in Electrum and Armory to enable completely offline storage and spending, where an offline computer knows the private key and an online one knows only the MPK. Transactions spending coins are ferried between the two computers via USB storage which avoids exposing the offline computer to a network-based attack.

freebitcoin.TO WIN A  LAMBORGHINI!..

.
                                ▄▄▄▄▄▄▄▄▄▄███████████▄▄▄▄▄
                    ▄▄▄▄▄██████████████████████████████████▄▄▄▄
                    ▀██████████████████████████████████████████████▄▄▄
                    ▄▄████▄█████▄████████████████████████████▄█████▄████▄▄
                    ▀████████▀▀▀████████████████████████████████▀▀▀██████████▄
                      ▀▀▀████▄▄▄███████████████████████████████▄▄▄██████████
                           ▀█████▀  ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀  ▀█████▀▀▀▀▀▀▀▀▀▀
                   ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
Diamais (OP)
Newbie
*
Offline Offline

Activity: 3
Merit: 0


View Profile
December 14, 2017, 01:10:55 PM
 #5

Now it is clear, thank you very much. Smiley
Abdussamad
Legendary
*
Offline Offline

Activity: 3640
Merit: 1571



View Profile
December 14, 2017, 01:38:55 PM
 #6

A watch only wallet doesn't generate addresses, you simply enter the address you want to monitor. Generally, the idea is that you create a cold wallet off-line and then enter the addresses it generated in a watch only wallet to monitor the balance and transactions.


This is not correct. A deterministic watch-only wallet i.e. a wallet created using a master public key or extended public key can generate unlimited addresses.

Hi everybody.
As far as I understand the idea, the seed is used to generate your private keys. And from private keys you generate public addresses (public keys). So you cannot generate any public key without having private key, yes ?


There is no such thing as a public address. It is just address. From the private key you derive the public key. Hasing the public key gives you the address. Address and public key are not the same either.

It is possible in deterministic wallets to generate address specific public keys using the extended public key. I'm not a crypto ninja so I don't understand the mechanics of this but if you are interested you can read about it here: https://bitcointalk.org/index.php?topic=19137.0 .

A watch-only wallet can't generate private keys though so it is safe to use it on a computer that may be infected with malware. The only risk is that your privacy will be gone because all your addresses, transactions and balances will be visible to the attacker.
TheQuin
Hero Member
*****
Offline Offline

Activity: 2576
Merit: 882


Freebitco.in Support https://bit.ly/2I9BVS2


View Profile WWW
December 14, 2017, 01:59:11 PM
 #7

This is not correct. A deterministic watch-only wallet i.e. a wallet created using a master public key or extended public key can generate unlimited addresses.

Yes, I misunderstood his question the first time and didn't realise he was referring to a deterministic watch-only wallet.

freebitcoin.TO WIN A  LAMBORGHINI!..

.
                                ▄▄▄▄▄▄▄▄▄▄███████████▄▄▄▄▄
                    ▄▄▄▄▄██████████████████████████████████▄▄▄▄
                    ▀██████████████████████████████████████████████▄▄▄
                    ▄▄████▄█████▄████████████████████████████▄█████▄████▄▄
                    ▀████████▀▀▀████████████████████████████████▀▀▀██████████▄
                      ▀▀▀████▄▄▄███████████████████████████████▄▄▄██████████
                           ▀█████▀  ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀  ▀█████▀▀▀▀▀▀▀▀▀▀
                   ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
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!