Bitcoin Forum
December 09, 2016, 07:55:35 AM *
News: To be able to use the next phase of the beta forum software, please ensure that your email address is correct/functional.
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Minimal wallet file size?  (Read 2184 times)
vermorel
Newbie
*
Offline Offline

Activity: 14


View Profile WWW
July 22, 2011, 02:33:48 PM
 #1

It seems that a fresh wallet.dat is around 140kB, but AFAIK it contains already 100 keys. In order to secure an offline wallet, I see two very distinct threats:
1- getting the wallet stolen
2- losing the wallet

The easiest way to address No1 is to bring the wallet offline. Yet, suddenly, it becomes a lot harder to end-up with super-durable storage.

At 140kB, printing the wallet is rather cumbersome, but assuming that it could be brought down to 1.4kB (with only 1 key), it would be much easier to backup, possibly through super-naive Base64 encoding combined with plain text print (and OCR for recovery, with the option of doing it the manual way if OCR fails for whatever reason).

Are my numbers correct? Any thoughts in providing such an option to produce such thin wallets for the sole purpose of offline saving?

Best regards,
Joannes Vermorel
1481270135
Hero Member
*
Offline Offline

Posts: 1481270135

View Profile Personal Message (Offline)

Ignore
1481270135
Reply with quote  #2

1481270135
Report to moderator
1481270135
Hero Member
*
Offline Offline

Posts: 1481270135

View Profile Personal Message (Offline)

Ignore
1481270135
Reply with quote  #2

1481270135
Report to moderator
1481270135
Hero Member
*
Offline Offline

Posts: 1481270135

View Profile Personal Message (Offline)

Ignore
1481270135
Reply with quote  #2

1481270135
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
EricJ2190
Full Member
***
Offline Offline

Activity: 134


View Profile
July 23, 2011, 01:15:12 AM
 #2

For a single address offline wallet, you can just generate a private key and record it. This takes only 32 bytes (64 digits in hex, 44 in padded Base64) and is short enough to be stored in a QR code or even written down by hand. People already use this for offline savings. Casascius sells paper wallets containing nine addresses and their private keys on one sheet of paper. BitBills are similar and store the keys in QR codes.
vector76
Member
**
Offline Offline

Activity: 70


View Profile
July 23, 2011, 06:04:43 AM
 #3

This is a great reason for deterministic key generation.
Sukrim
Legendary
*
Offline Offline

Activity: 1848


View Profile
July 25, 2011, 01:42:59 AM
 #4

I would be interested btw. in the opposite:
What's the maximum wallet size (if there is one), how many privkeys + adresses can you store in a (for example) 1 TB wallet approximately, how hard are the performance hits of huge (multi GB/TB) wallet.dat files and when would they occur (at every block that is received?)?

https://bitfinex.com <-- leveraged trading of BTCUSD, LTCUSD and LTCBTC (long and short) - 10% discount on fees for the first 30 days with this refcode: x5K9YtL3Zb
Mail me at Bitmessage: BM-BbiHiVv5qh858ULsyRDtpRrG9WjXN3xf
Joric
Member
**
Offline Offline

Activity: 67


View Profile
July 26, 2011, 09:55:42 AM
 #5

With bitcoin -poolsize=0 you'll get 32kb wallet (see https://bitcointools.appspot.com).

1JoricCBkW8C5m7QUZMwoRz9rBCM6ZSy96
wumpus
Hero Member
*****
qt
Offline Offline

Activity: 798

No Maps for These Territories


View Profile
July 26, 2011, 11:16:42 AM
 #6

If you print the wallet you should extract the private keys and print those. They are pretty small (as EricJ says, 32 bytes a piece) so you print it as 1 line/key, or a sheet full of QR codes.

Please don't print the binary database file entirely, it also contains unrelated info (such as configuration) and index structures/padding for efficiency that you don't need on paper.


Bitcoin Core developer [PGP] Warning: For most, coin loss is a larger risk than coin theft. A disk can die any time. Regularly back up your wallet through FileBackup Wallet to an external storage or the (encrypted!) cloud. Use a separate offline wallet for storing larger amounts.
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!