Bitcoin Forum
May 09, 2024, 11:57:14 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: About how restoration of an Electrum Wallet works  (Read 138 times)
patrick_here (OP)
Newbie
*
Offline Offline

Activity: 10
Merit: 0


View Profile
March 31, 2018, 08:37:34 PM
 #1

A newbie question about Electrum Wallet:

I understand that I can store multiple bitcoins (or bitcoin transactions) in an Electrum Wallet located on my (Linux) computer and that the wallet contains a private key and it can be restored from a passphrase.  However, what I don't understand is this:

Suppose I have three bitcoin transactions in my local wallet and then my hard drive crashes without a backup and all I have is my Electrum Seed ...so I go ahead and re-create my Electrum wallet.
Will my newly-recreated wallet have my three bitcoins (or bitcoin transactions) in it?  If so, where did it get this information from (since my HardDrive crashed) ...did it get it from the blockchain? 

Please do not post an "answer" this question unless you really know the answer. 

Thanks in advance for the reliable information
Whoever mines the block which ends up containing your transaction will get its fee.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715255834
Hero Member
*
Offline Offline

Posts: 1715255834

View Profile Personal Message (Offline)

Ignore
1715255834
Reply with quote  #2

1715255834
Report to moderator
1715255834
Hero Member
*
Offline Offline

Posts: 1715255834

View Profile Personal Message (Offline)

Ignore
1715255834
Reply with quote  #2

1715255834
Report to moderator
1715255834
Hero Member
*
Offline Offline

Posts: 1715255834

View Profile Personal Message (Offline)

Ignore
1715255834
Reply with quote  #2

1715255834
Report to moderator
Abdussamad
Legendary
*
Offline Offline

Activity: 3612
Merit: 1564



View Profile
March 31, 2018, 08:41:24 PM
 #2

The blockchain records all bitcoin transactions. Electrum gets access to the blockchain via electrum servers. These are run by volunteers. You can learn what server you are connected by going to tools > network or the console tab (view > show console if you can't see it).

Your wallet contains the private keys that let you control the values (bitcoins) recorded in the blockchain. All the private keys in your wallet are derived from the seed so when you restore from seed electrum can discover your entire transaction history. What it can't recover are your labels and contacts. These things are only stored in your wallet file so be sure to back that up regularly via file > save copy or by having your backup app automatically grab it from the electrum wallets directory
jackg
Copper Member
Legendary
*
Offline Offline

Activity: 2856
Merit: 3071


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


View Profile
March 31, 2018, 08:41:32 PM
 #3

Yes that's exactly what it does.

Your seed is a very long number broken down into 13-15 words so it's easier to store/write down/remember.

If you want to restore the wallet, the words are converted into this number that then produces a series of private keys that you can spend from. These private keys are converted into addresses also so the data can be recieved on those addresses. A hash of that seed number is also used to produce an extended public key which is then used to be sent off to an electrum server in order for the data to be sent back of the transactions for the entire wallet data to be restored (labels and other data that are just on your device don't return however, that's useful to remember).
patrick_here (OP)
Newbie
*
Offline Offline

Activity: 10
Merit: 0


View Profile
March 31, 2018, 08:46:13 PM
 #4

.... an extended public key which is then used to be sent off to an electrum server...

   [Edited] ...okay thanks for the replies.  Just noticed that the Electrum Server Software is available ("ElectrumX")
Abdussamad
Legendary
*
Offline Offline

Activity: 3612
Merit: 1564



View Profile
April 01, 2018, 08:20:06 AM
Last edit: April 01, 2018, 10:16:01 AM by Abdussamad
 #5

Electrum doesn't share the extended public key aka master public key with electrum servers. It asks for relevant transaction data by sharing your addresses script hashes relevant to your wallet [1] with the server. The distinction is important because exposure of the MPK is bad for your security and the MPK tells you all the addresses that can ever be generated in your wallet even ones that you haven't actually generated yet.

[1] Edit: I just learned on IRC that Electrum no longer shares the address with the server. Instead it subscribes to transactions relevant to the output script aka scriptpubkey:

https://electrumx.readthedocs.io/en/latest/protocol-basics.html#script-hashes

Of course if the server operator wants to he can find out the address from this but it's one extra step he has to take.
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!