<p>From the seed, Electrum generates data which it then uses to generate as many private keys as are desired. From every private key, a public key is generated, and from every public key a hash of that public key, and from every public key hash an address.</p>

<p>Electrum then checks those addresses for activity on the server it's connected to as I described in <a href="https://bitcoin.stackexchange.com/a/50541/29893">this</a> and <a href="https://bitcoin.stackexchange.com/a/48071/29893">this answer</a> (read them for details).</p>

CC BY-SA 3.0
2017-03-17T06:49:13.910Z
Can I backup the wallet file in the wallets directory rather than the seed phrases to recover the funds? Is there any info thats stored out side the wallet file that I need the seed either way?
Jikku Jose
CC BY-SA 3.0
2017-03-17T09:18:16.453Z
No such info is stored outside the wallet files. However, you might still want to back up your seeds anyway because it makes accessing the wallets easier, e.g. if you want to accees your wallets on a phone because you don't have access to a desktop computer or laptop. It also makes accessing your wallets possible with a different HD wallet should Electrum die.
UTF-8
CC BY-SA 3.0
2017-01-22T22:54:49.290Z
2017-01-22T22:54:49.290Z
2017-04-13T12:47:36.647Z
UTF-8
<p>The seeds produce the addresses, not the balances.  Consider that you can have multiple wallets that contain the same address.  The balance doesn't exist in both addresses, because there's two copies ... it's like you said at the end.  </p>

<p>Your wallet looks up the addresses in the blockchain that's copied on your system, and they contain the balance ... well, actually, the balance isn't actually an entity.  The transactions are.  Your wallet scans the blockchain for your addresses, and any transactions that involved it, and calculates the balance based on the inputs and outputs.</p>

CC BY-SA 3.0
2017-01-22T20:04:59.597Z
2017-01-22T20:04:59.597Z
Richard Anthony Hein
<p>I installed <a href="https://electrum.org/" rel="nofollow noreferrer">electrum</a> created my fist wallet and notice that instead of having to save a <code>wallet.dat</code> file, If I am right I just need to save/write  12 seed words.</p>

<p>If I understand properly the seeds used to create the wallet, will always produce the same output, but how does the recover process works in order to restore/recover the wallet balance?</p>

<p>Is the blockchain checked against my wallet keys to claim ownership of the transactions that where signed with my keys in order to recover the possible founds?</p>

<blockchain><wallet><seed>
backing up 12 seed words vs wallet.dat
nbari
# backing up 12 seed words vs wallet.dat

(Asked by: username_0 on 2017-01-22)

I installed [electrum](https://electrum.org/) created my fist wallet and notice that instead of having to save a `wallet.dat` file, If I am right I just need to save/write 12 seed words.

If I understand properly the seeds used to create the wallet, will always produce the same output, but how does the recover process works in order to restore/recover the wallet balance?

Is the blockchain checked against my wallet keys to claim ownership of the transactions that where signed with my keys in order to recover the possible founds?

**Tags:** blockchain, wallet, seed


---

## 2 answers

### Answer by username_1 on 2017-01-22. Score: 0 | Accepted answer

From the seed, Electrum generates data which it then uses to generate as many private keys as are desired. From every private key, a public key is generated, and from every public key a hash of that public key, and from every public key hash an address.

Electrum then checks those addresses for activity on the server it's connected to as I described in [this](https://bitcoin.stackexchange.com/a/50541/29893) and [this answer](https://bitcoin.stackexchange.com/a/48071/29893) (read them for details).

> **Comments:**
> **username_2**: Can I backup the wallet file in the wallets directory rather than the seed phrases to recover the funds? Is there any info thats stored out side the wallet file that I need the seed either way?  
> **username_1**: No such info is stored outside the wallet files. However, you might still want to back up your seeds anyway because it makes accessing the wallets easier, e.g. if you want to accees your wallets on a phone because you don't have access to a desktop computer or laptop. It also makes accessing your wallets possible with a different HD wallet should Electrum die.  

---

### Answer by username_3 on 2017-01-22. Score: 0

The seeds produce the addresses, not the balances. Consider that you can have multiple wallets that contain the same address. The balance doesn't exist in both addresses, because there's two copies ... it's like you said at the end.

Your wallet looks up the addresses in the blockchain that's copied on your system, and they contain the balance ... well, actually, the balance isn't actually an entity. The transactions are. Your wallet scans the blockchain for your addresses, and any transactions that involved it, and calculates the balance based on the inputs and outputs.


---

