1
0

do not derive private keys when there is no seed

This commit is contained in:
ThomasV
2012-05-14 21:31:37 +02:00
parent 04d78a3bf4
commit e34f7dce7f
3 changed files with 9 additions and 4 deletions

View File

@@ -35,7 +35,7 @@ import electrum
from optparse import OptionParser
from decimal import Decimal
from electrum import Wallet, SecretToASecret, WalletSynchronizer, format_satoshis
from electrum import Wallet, WalletSynchronizer, format_satoshis
known_commands = ['help', 'validateaddress', 'balance', 'contacts', 'create', 'restore', 'payto', 'sendtx', 'password', 'addresses', 'history', 'label', 'mktx','seed','import','signmessage','verifymessage','eval','deseed','reseed']
offline_commands = ['password', 'mktx', 'label', 'contacts', 'help', 'validateaddress', 'signmessage', 'verifymessage', 'eval', 'create', 'addresses', 'import', 'seed','deseed','reseed']
@@ -361,8 +361,7 @@ if __name__ == '__main__':
b = "%d %d %s"%(no, ni, str(Decimal(wallet.get_addr_balance(addr)[0])/100000000))
else: b=''
if options.show_keys:
pk = wallet.get_private_key(addr, password)
addr = addr + ':' + SecretToASecret(pk)
addr += ':' + str(wallet.get_private_key_base58(addr, password))
print addr, b, _type, label
if cmd == 'history':