Bitcoin Forum
December 09, 2016, 09:50:59 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: What has it got in its walletses?  (Read 1425 times)
Hal
VIP
Sr. Member
*
expert
Offline Offline

Activity: 314



View Profile
January 24, 2011, 11:44:45 PM
 #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
1481277059
Hero Member
*
Offline Offline

Posts: 1481277059

View Profile Personal Message (Offline)

Ignore
1481277059
Reply with quote  #2

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

Posts: 1481277059

View Profile Personal Message (Offline)

Ignore
1481277059
Reply with quote  #2

1481277059
Report to moderator
1481277059
Hero Member
*
Offline Offline

Posts: 1481277059

View Profile Personal Message (Offline)

Ignore
1481277059
Reply with quote  #2

1481277059
Report to moderator
dirtyfilthy
Member
**
Offline Offline

Activity: 75


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

Good job. Do you happen to know how the blockchain is stored?

Address: 1EkSP5Uqf5Fhs8Gg4XJG2b3hrFS7Vm8WFz
Gavin Andresen
Legendary
*
qt
Offline Offline

Activity: 1652


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
*
expert
Offline Offline

Activity: 2506


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
VIP
Sr. Member
*
expert
Offline Offline

Activity: 314



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


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:  

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!