Bitcoin Forum
December 12, 2024, 11:46:09 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: quick question  (Read 996 times)
TheBitcoinMate (OP)
Newbie
*
Offline Offline

Activity: 1
Merit: 0


View Profile
June 30, 2014, 07:18:18 PM
 #1

So what's the difference between saving your .dat and exporting the keys?
As they both simply save your btc balance?
DannyHamilton
Legendary
*
Offline Offline

Activity: 3514
Merit: 4894



View Profile
June 30, 2014, 08:19:10 PM
 #2

So what's the difference between saving your .dat and exporting the keys?
As they both simply save your btc balance?

That depends on which wallet you are using.

If you are using Bitcoin Core, then saving the .dat file also saves the balance of the bitcoins that you receive in the near future in new bitcoin addresses, whereas exporting keys of addresses that currently have a balance will not.
Wusolini
Legendary
*
Offline Offline

Activity: 1190
Merit: 1000


no need to carry heavy money bags anymore


View Profile
June 30, 2014, 08:36:59 PM
 #3

So what's the difference between saving your .dat and exporting the keys?
As they both simply save your btc balance?

wallet is folder of addresses, some wallets can "pre-calculate" addresses (they're called Deterministic wallet), so when you in future generate new address. You will be able to access it even from older backup of w.dat.

DannyHamilton
Legendary
*
Offline Offline

Activity: 3514
Merit: 4894



View Profile
June 30, 2014, 08:54:44 PM
 #4

So what's the difference between saving your .dat and exporting the keys?
As they both simply save your btc balance?

wallet is folder of addresses,

A wallet is a collection of addresses AND the private keys necessary to spend the bitcoins received at those addresses.

They may be in a folder, a file, a database, written on paper, memorized, or any other form.

Most wallet software also provide features to determine the spendable balance that the private keys have control over, as well as features to create transactions to send bitcoins to others.

some wallets can "pre-calculate" addresses (they're called Deterministic wallet)

No.  Deterministic wallets do not need to "pre-calculate" addresses.  The addresses are all formed from a single seed value using a mathematical formula.  As long as you know (or the software is programed with) that formula, you can re-generate the entire list of addresses from the seed value in the future.  This means that those wallets can access the entire balance as long as you have backed up the seed value.

Wallets like the current version of Bitcoin Core are NOT "deterministic".  These wallets generate addresses entirely randomly, making it impossible to regenerate the same address in the future unless you have a backup of the completely random private key that was used to create the address.  Because Bitcoin Core is not deterministic, it "pre-generates" 100 addresses (with the default setting) and stores them (along with their private keys) in the wallet.dat file.  This way, you can recover your entire balance from the wallet.dat file as long as you created the backup recently enough.
ajareselde
Legendary
*
Offline Offline

Activity: 1722
Merit: 1000

Satoshi is rolling in his grave. #bitcoin


View Profile
June 30, 2014, 11:03:13 PM
 #5

So what's the difference between saving your .dat and exporting the keys?
As they both simply save your btc balance?

long story short, backup your wallet.dat and keep it safe, + add a passphrase
exporting keys is something you shouldnt consider as a newbie.

cheers
DrG
Legendary
*
Offline Offline

Activity: 2086
Merit: 1035


View Profile
July 01, 2014, 10:07:35 AM
 #6

So what's the difference between saving your .dat and exporting the keys?
As they both simply save your btc balance?

long story short, backup your wallet.dat and keep it safe, + add a passphrase
exporting keys is something you shouldnt consider as a newbie.

cheers

As noted above you need to protect your wallet.dat file like you would your own wallet in your back pocket.  It doesn't not store the bitcoins.  The bitcoins are on the blockchain, similar to being on the cloud and the network is what is keeping track of it.

The keys in the wallet.dat file simply allow you to open or unlock your bitcoins.  If somebody else gave you their keys and you knew their addresses you could grab their coins.
FeodoroAndy
Newbie
*
Offline Offline

Activity: 57
Merit: 0


View Profile
July 01, 2014, 10:09:24 AM
 #7

Thanks to all, answered my questions too.
DannyHamilton
Legendary
*
Offline Offline

Activity: 3514
Merit: 4894



View Profile
July 01, 2014, 01:07:55 PM
 #8

If somebody else gave you their keys and you knew their addresses you could grab their coins.

You don't need to know their addresses.  All you need is their keys.  The addresses can be computed from the keys.
Zebra
Hero Member
*****
Offline Offline

Activity: 612
Merit: 500



View Profile
July 01, 2014, 03:31:25 PM
 #9

So what's the difference between saving your .dat and exporting the keys?
As they both simply save your btc balance?

I don't really see the advantage of exporting the keys over making a backup for your wallet file.
It just costs you more time to export the keys, and import them in the future.

techlover
Full Member
***
Offline Offline

Activity: 224
Merit: 100


View Profile
July 09, 2014, 06:29:41 AM
 #10

So what's the difference between saving your .dat and exporting the keys?
As they both simply save your btc balance?

I don't really see the advantage of exporting the keys over making a backup for your wallet file.
It just costs you more time to export the keys, and import them in the future.

Yes, I think saving the wallet file is better.
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!