Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions pywallet.py
Original file line number Diff line number Diff line change
Expand Up @@ -4852,8 +4852,7 @@ def retrieve_last_pywallet_md5():
size = read_device_size(options.recov_size)

passphraseRecov=''
while passphraseRecov=='':
passphraseRecov=raw_input("Enter the passphrase for the wallet that will contain all the recovered keys: ")
passphraseRecov=raw_input("Enter the passphrase for the wallet that will contain all the recovered keys: ")
passphrase=passphraseRecov

passes=[]
Expand All @@ -4870,14 +4869,14 @@ def retrieve_last_pywallet_md5():
recoveredKeys=recov(device, passes, size, 10240, options.recov_outputdir)
recoveredKeys=list(set(recoveredKeys))
# print recoveredKeys[0:5]

print "\nrecov succeeded"

db_env = create_env(options.recov_outputdir)
recov_wallet_name = "recovered_wallet_%s.dat"%ts()

create_new_wallet(db_env, recov_wallet_name, 32500)

if passphraseRecov!="I don't want to put a password on the recovered wallet and I know what can be the consequences.":
if passphraseRecov!="":
db = open_wallet(db_env, recov_wallet_name, True)

NPP_salt=os.urandom(8)
Expand Down