Bitcoin Forum
May 06, 2024, 03:16:16 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: What has it got in its walletses?  (Read 1783 times)
Hal (OP)
VIP
Sr. Member
*
expert
Offline Offline

Activity: 314
Merit: 3853



View Profile
January 24, 2011, 11:44:45 PM
Merited by ABCbits (2)
 #1

I modified the bc_key program originally by dirtyfilthy, to dump out info on everything in the wallet.dat file.

https://github.com/halfinney/bc_key

It prints out keys (as addresses), transaction hashes, key pool addresses, address book names, etc.

Run it as:

./bc_key EVERYTHING ~/.bitcoin/wallet.dat

or wherever your wallet.dat might be. I like to pipe the output through sort.

I've noticed two oddities in the couple of wallets I've looked at:

There are no wkey entries, only keys. wkeys would hold extra stuff with Merkle branches and all that. Is this not yet (or no longer) supported, present in the code for the hypothetical "lightweight client"?

I have a very old wallet, created by the first version of bitcoin. Recently I upgraded to a modern version. However, the wallet has no pool entries. I thought the upgrade would create 100 keypool entries?

Hal Finney
1715008576
Hero Member
*
Offline Offline

Posts: 1715008576

View Profile Personal Message (Offline)

Ignore
1715008576
Reply with quote  #2

1715008576
Report to moderator
1715008576
Hero Member
*
Offline Offline

Posts: 1715008576

View Profile Personal Message (Offline)

Ignore
1715008576
Reply with quote  #2

1715008576
Report to moderator
1715008576
Hero Member
*
Offline Offline

Posts: 1715008576

View Profile Personal Message (Offline)

Ignore
1715008576
Reply with quote  #2

1715008576
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715008576
Hero Member
*
Offline Offline

Posts: 1715008576

View Profile Personal Message (Offline)

Ignore
1715008576
Reply with quote  #2

1715008576
Report to moderator
1715008576
Hero Member
*
Offline Offline

Posts: 1715008576

View Profile Personal Message (Offline)

Ignore
1715008576
Reply with quote  #2

1715008576
Report to moderator
1715008576
Hero Member
*
Offline Offline

Posts: 1715008576

View Profile Personal Message (Offline)

Ignore
1715008576
Reply with quote  #2

1715008576
Report to moderator
dirtyfilthy
Member
**
Offline Offline

Activity: 77
Merit: 10


View Profile
January 25, 2011, 01:08:39 AM
 #2

Good job. Do you happen to know how the blockchain is stored?
Gavin Andresen
Legendary
*
qt
Offline Offline

Activity: 1652
Merit: 2216


Chief Scientist


View Profile WWW
January 25, 2011, 02:55:16 AM
 #3

I have a very old wallet, created by the first version of bitcoin. Recently I upgraded to a modern version. However, the wallet has no pool entries. I thought the upgrade would create 100 keypool entries?

It will create 100 keypool entries the first time you request a new address or if you turn on coin generation (the mining threads each ask the keypool for an address to create the coinbase transactions).

I don't know what the story is with "wkey".

How often do you get the chance to work on a potentially world-changing project?
theymos
Administrator
Legendary
*
Offline Offline

Activity: 5194
Merit: 12972


View Profile
January 25, 2011, 03:11:25 AM
 #4

I have a very old wallet, created by the first version of bitcoin.

Impressive that upgrading even worked!

1NXYoJ5xU91Jp83XfVMHwwTUyZFK64BoAD
Hal (OP)
VIP
Sr. Member
*
expert
Offline Offline

Activity: 314
Merit: 3853



View Profile
January 25, 2011, 05:12:57 AM
 #5

I was scared to upgrade since I had a fair amount of vintage bitcoins in there. But everything seemed ok. I'll play with it some more and see if I can get a key pool.

I was wrong about the wkey, it would mostly add creation and expiration dates, maybe a future feature.

Hal Finney
Mike Hearn
Legendary
*
expert
Offline Offline

Activity: 1526
Merit: 1129


View Profile
January 26, 2011, 04:35:15 PM
 #6

The block chain file is simply a concatenation of the blocks themselves. The index file then allows you to map transaction IDs into blk00000.dat file offsets.
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!