Bitcoin Forum
May 04, 2024, 12:41:56 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Minimal wallet file size?  (Read 2429 times)
vermorel (OP)
Newbie
*
Offline Offline

Activity: 14
Merit: 0


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
1714783316
Hero Member
*
Offline Offline

Posts: 1714783316

View Profile Personal Message (Offline)

Ignore
1714783316
Reply with quote  #2

1714783316
Report to moderator
1714783316
Hero Member
*
Offline Offline

Posts: 1714783316

View Profile Personal Message (Offline)

Ignore
1714783316
Reply with quote  #2

1714783316
Report to moderator
Even if you use Bitcoin through Tor, the way transactions are handled by the network makes anonymity difficult to achieve. Do not expect your transactions to be anonymous unless you really know what you're doing.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714783316
Hero Member
*
Offline Offline

Posts: 1714783316

View Profile Personal Message (Offline)

Ignore
1714783316
Reply with quote  #2

1714783316
Report to moderator
1714783316
Hero Member
*
Offline Offline

Posts: 1714783316

View Profile Personal Message (Offline)

Ignore
1714783316
Reply with quote  #2

1714783316
Report to moderator
EricJ2190
Full Member
***
Offline Offline

Activity: 134
Merit: 102


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
Merit: 18


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

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

Activity: 2618
Merit: 1006


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://www.coinlend.org <-- automated lending at various exchanges.
https://www.bitfinex.com <-- Trade BTC for other currencies and vice versa.
Joric
Member
**
Offline Offline

Activity: 67
Merit: 130


View Profile
July 26, 2011, 09:55:42 AM
Merited by xandry (4)
 #5

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

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

Activity: 812
Merit: 1022

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:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!