mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-27 07:23:25 +00:00
more efficient method for exporting private keys
This commit is contained in:
parent
999adc80af
commit
31e265b11d
1 changed files with 3 additions and 3 deletions
|
@ -1760,9 +1760,9 @@ class ElectrumWindow(QMainWindow):
|
|||
transaction = csv.writer(csvfile)
|
||||
transaction.writerow(["address", "private_key"])
|
||||
|
||||
for addr in self.wallet.all_addresses():
|
||||
m_addr = "%34s"%addr
|
||||
transaction.writerow([m_addr, str(self.wallet.get_private_key(addr, password))])
|
||||
|
||||
for addr, pk in self.wallet.get_private_keys(self.wallet.all_addresses(), password).items():
|
||||
transaction.writerow(["%34s"%addr,pk])
|
||||
|
||||
self.show_message(_("Private keys exported."))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue