Bitcoin Forum

Bitcoin => Electrum => Topic started by: marco0070 on October 13, 2017, 09:11:29 AM



Title: why so many addresses and private keys
Post by: marco0070 on October 13, 2017, 09:11:29 AM
I'm newbie and sorry for stupid question, I exported private keys from electrum, I was wondering why there is 26 of addresses and private keys, I thought it would be one.


Title: Re: why so many addresses and private keys
Post by: ranochigo on October 13, 2017, 10:12:41 AM
Electrum uses hiearchial determistic(HD) seeds to generate addresses. Using the seed, the client can generate a master private key which can generate a practically unlimited number of addresses. The default behavior of Electrum is to generate addresses till they find an ąddress with Bitcoins and generate an additional 10 addresses after that point. Judging by that, you likely had 16 transactions using your wallet.


Title: Re: why so many addresses and private keys
Post by: marco0070 on October 13, 2017, 10:29:19 AM
Electrum uses hiearchial determistic(HD) seeds to generate addresses. Using the seed, the client can generate a master private key which can generate a practically unlimited number of addresses. The default behavior of Electrum is to generate addresses till they find an ąddress with Bitcoins and generate an additional 10 addresses after that point. Judging by that, you likely had 16 transactions using your wallet.
I don't completely understand  ;D  but thanks anyway.     
One more question,  I exported those addresses,  will it use these addresses only or it can generate new ones again and again, I want the same address.


Title: Re: why so many addresses and private keys
Post by: Lucius on October 13, 2017, 12:25:45 PM
Electrum uses hiearchial determistic(HD) seeds to generate addresses. Using the seed, the client can generate a master private key which can generate a practically unlimited number of addresses. The default behavior of Electrum is to generate addresses till they find an ąddress with Bitcoins and generate an additional 10 addresses after that point. Judging by that, you likely had 16 transactions using your wallet.
I don't completely understand  ;D  but thanks anyway.     
One more question,  I exported those addresses,  will it use these addresses only or it can generate new ones again and again, I want the same address.

You can use those addresses actually forever,as long as you are in possession of your seed and private keys.You do not have to worry about Electrum generate new addresses and you not need to export private keys for for each new address,all you need is your seed(secret words) and if you get in some problem with your wallet you can just download Electrum again and with your original seed restore completely your wallet with all addresses/balance/transactions.

There is also possibility that only with one public exposed private key from Elecrum HD you can jeopardize your wallet.If I remember well, there is a possibility to create seed using private key.


Title: Re: why so many addresses and private keys
Post by: marco0070 on October 13, 2017, 12:33:08 PM
Electrum uses hiearchial determistic(HD) seeds to generate addresses. Using the seed, the client can generate a master private key which can generate a practically unlimited number of addresses. The default behavior of Electrum is to generate addresses till they find an ąddress with Bitcoins and generate an additional 10 addresses after that point. Judging by that, you likely had 16 transactions using your wallet.
I don't completely understand  ;D  but thanks anyway.     
One more question,  I exported those addresses,  will it use these addresses only or it can generate new ones again and again, I want the same address.

You can use those addresses actually forever,as long as you are in possession of your seed and private keys.You do not have to worry about Electrum generate new addresses and you not need to export private keys for for each new address,all you need is your seed(secret words) and if you get in some problem with your wallet you can just download Electrum again and with your original seed restore completely your wallet with all addresses/balance/transactions.

There is also possibility that only with one public exposed private key from Elecrum HD you can jeopardize your wallet.If I remember well, there is a possibility to create seed using private key.
Thank you so much


Title: Re: why so many addresses and private keys
Post by: Coin-Keeper on October 13, 2017, 03:28:20 PM
I'm newbie and sorry for stupid question, I exported private keys from electrum, I was wondering why there is 26 of addresses and private keys, I thought it would be one.

As others stated above it would be wise to  stick with SEED only unless you have a specific reason to need those private keys.  Is there a reason that you decided to export all those private keys?  Its OK if you just did a newbie thing, we were all there once.  I cannot stress enough how important it is to make sure that those private keys and SEED never get in someone else's hands.  It would be a disaster for your coins staying in your wallet.


Title: Re: why so many addresses and private keys
Post by: HCP on October 14, 2017, 04:48:24 AM
I'm newbie and sorry for stupid question, I exported private keys from electrum, I was wondering why there is 26 of addresses and private keys, I thought it would be one.
Electrum uses hiearchial determistic(HD) seeds to generate addresses. Using the seed, the client can generate a master private key which can generate a practically unlimited number of addresses. The default behavior of Electrum is to generate addresses till they find an ąddress with Bitcoins and generate an additional 10 addresses after that point. Judging by that, you likely had 16 transactions using your wallet.
Close, but not quite... The default gap limit in Electrum is 20 for receive addresses... and 5 for change addresses.

On initial wallet creation, Electrum generates your 1st receive address, and then searches for the next 20 consecutive unused receive addresses looking for coins/transactions before stopping. It then looks for the first 5 consecutive unused "change" addresses for coins/transactions before stopping.

So you have 1 + 20 + 5 = 26 addresses... with 26 private keys ;)





Title: Re: why so many addresses and private keys
Post by: marco0070 on October 14, 2017, 08:52:12 AM
Thank you all


Title: Re: why so many addresses and private keys
Post by: Abdussamad on October 14, 2017, 09:49:24 AM
It will generate new addresses which is why a private key backup is a very dangerous thing to rely on. Your coins will eventually be moved to the new addresses by Electrum and you will be SOL. You should backup only the 12 word seed mnemonic.


Title: Re: why so many addresses and private keys
Post by: Maingtoled1958 on October 18, 2017, 08:36:11 PM
Electrum uses hiearchial determistic(HD) seeds to generate addresses. Using the seed, the client can generate a master private key which can generate a practically unlimited number of addresses. The default behavior of Electrum is to generate addresses till they find an ąddress with Bitcoins and generate an additional 10 addresses after that point. Judging by that, you likely had 16 transactions using your wallet.


this member give all information with simple words +1


Title: Re: why so many addresses and private keys
Post by: Winstar78 on February 28, 2019, 12:28:33 AM
Sorry for bumping an old topic,

What's the point in generating more than 1 address? Is it a good thing to use every time different receive address? And if my funds are split among those address, can I send a certain amount (higher than the single address balance) with only a transaction?


Title: Re: why so many addresses and private keys
Post by: joniboini on February 28, 2019, 03:35:43 AM
What's the point in generating more than 1 address? Is it a good thing to use every time different receive address?

Most of the time it's about the privacy issue. Good or not depends on what you really need. If you're a charity foundation then maybe using the same address to receive a donation is better. But if you're an average user then using the same address is not really a problem, unless quantum computer becomes so cheap that people can find your private key from your xpub, cmiiw.

And if my funds are split among those address, can I send a certain amount (higher than the single address balance) with only a transaction?

If all of them are part of the same wallet, afaik you can do it. If not, you can't.


Title: Re: why so many addresses and private keys
Post by: Abdussamad on February 28, 2019, 09:26:08 AM
See here (https://bitcoinelectrum.com/frequently-asked-questions/#why-does-electrum-give-me-a-different-address-everytime) for why you have many addresses


Title: Re: why so many addresses and private keys
Post by: whotookmycrypto on March 07, 2019, 04:08:32 PM
See here (https://bitcoinelectrum.com/frequently-asked-questions/#why-does-electrum-give-me-a-different-address-everytime) for why you have many addresses

Good stuff.

Also to the OP. If privacy concerns you, you may want to read up on coin control.
(https://bitcointalk.org/index.php?topic=3774520.0#post_point5)

It allows you to enhance your privacy by spending from specific addresses. To understand how it helps you enhance your privacy, copied this from the Bitcoin Wiki.

https://en.bitcoin.it/wiki/Privacy#Coin_control

Coin control

Coin control is a feature of some bitcoin wallets that allow the user to choose which coins are to be spent as inputs in an outgoing transaction. Coin control is aimed to avoid as much as possible transactions where privacy leaks are caused by amounts, change addresses, the transaction graph and the common-input-ownership heuristic.

An example for avoiding a transaction graph privacy leak with coin control: A user is paid bitcoin for their employment, but also sometimes buys bitcoin with cash. The user wants to donate some money to a charitable cause they feel passionately about, but doesn't want their employer to know. The charity also has a publicly-visible donation address which can been found by web search engines. If the user paid to the charity without coin control, his wallet may use coins that came from the employer, which would allow the employer to figure out which charity the user donated to. By using coin control, the user can make sure that only coins that were obtained anonymously with cash were sent to the charity. This avoids the employer ever knowing that the user financially supports this charity.