Bitcoin Forum
May 06, 2024, 12:36:01 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: bitcointools load wallet, print type+key+value in python  (Read 1163 times)
genjix (OP)
Legendary
*
expert
Offline Offline

Activity: 1232
Merit: 1072


View Profile
April 16, 2011, 05:40:38 AM
 #1

I just get jibberish.

Code:
from bitcointools import util, wallet
from bitcointools.BCDataStream import BCDataStream
from bsddb import db as bdb
db_env = util.create_env()
db = wallet.open_wallet(db_env)
kds = BCDataStream()
vds = BCDataStream()
for key, val in db.items():
    kds.clear()
    kds.write(key)
    vds.clear()
    vds.write(val)
    type = kds.read_string()
    print type
1714998961
Hero Member
*
Offline Offline

Posts: 1714998961

View Profile Personal Message (Offline)

Ignore
1714998961
Reply with quote  #2

1714998961
Report to moderator
1714998961
Hero Member
*
Offline Offline

Posts: 1714998961

View Profile Personal Message (Offline)

Ignore
1714998961
Reply with quote  #2

1714998961
Report to moderator
1714998961
Hero Member
*
Offline Offline

Posts: 1714998961

View Profile Personal Message (Offline)

Ignore
1714998961
Reply with quote  #2

1714998961
Report to moderator
Activity + Trust + Earned Merit == The Most Recognized Users on Bitcointalk
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714998961
Hero Member
*
Offline Offline

Posts: 1714998961

View Profile Personal Message (Offline)

Ignore
1714998961
Reply with quote  #2

1714998961
Report to moderator
1714998961
Hero Member
*
Offline Offline

Posts: 1714998961

View Profile Personal Message (Offline)

Ignore
1714998961
Reply with quote  #2

1714998961
Report to moderator
1714998961
Hero Member
*
Offline Offline

Posts: 1714998961

View Profile Personal Message (Offline)

Ignore
1714998961
Reply with quote  #2

1714998961
Report to moderator
genjix (OP)
Legendary
*
expert
Offline Offline

Activity: 1232
Merit: 1072


View Profile
April 16, 2011, 02:15:07 PM
 #2

help!
genjix (OP)
Legendary
*
expert
Offline Offline

Activity: 1232
Merit: 1072


View Profile
April 16, 2011, 08:18:05 PM
 #3

bump
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!