Wallet file encryption:
- a keypair is derived from the wallet password - only the public key is retained in memory - wallets must opened and closed explicitly with the daemon
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import tty, sys
|
||||
import curses, datetime, locale
|
||||
from decimal import Decimal
|
||||
import getpass
|
||||
|
||||
from electrum.util import format_satoshis, set_verbosity
|
||||
from electrum.util import StoreDict
|
||||
@@ -21,7 +22,8 @@ class ElectrumGui:
|
||||
if not storage.file_exists:
|
||||
print "Wallet not found. try 'electrum create'"
|
||||
exit()
|
||||
|
||||
password = getpass.getpass('Password:', stream=None) if storage.is_encrypted() else None
|
||||
storage.read(password)
|
||||
self.wallet = Wallet(storage)
|
||||
self.wallet.start_threads(self.network)
|
||||
self.contacts = StoreDict(self.config, 'contacts')
|
||||
|
||||
Reference in New Issue
Block a user