1
0

simplify get_private_key, use base58

This commit is contained in:
thomasv
2013-02-22 17:27:19 +01:00
parent 5d6496f1f9
commit 76439beec5
3 changed files with 15 additions and 31 deletions

View File

@@ -561,7 +561,7 @@ if __name__ == '__main__':
else: b=''
m_addr = "%34s"%addr
if options.show_keys:
m_addr += ':' + str(wallet.get_private_key_base58(addr, password))
m_addr += ':' + str(wallet.get_private_key(addr, password))
print_msg(flags, m_addr, b, label)
if cmd == 'history':
@@ -703,7 +703,7 @@ if __name__ == '__main__':
elif cmd == 'dumpprivkey':
addr = args[1]
sec = wallet.get_private_key_base58(addr, password)
sec = wallet.get_private_key(addr, password)
print_msg( sec )
@@ -770,7 +770,7 @@ if __name__ == '__main__':
if not private_keys:
for txin in tx.inputs:
addr = txin['address']
private_keys[addr] = wallet.get_private_key_base58(addr, password)
private_keys[addr] = wallet.get_private_key(addr, password)
else:
pk = {}
for sec in private_keys: