1
0

During wallet creation, do not write seed on disk before it is encrypted

This commit is contained in:
thomasv
2013-12-13 17:30:34 +01:00
parent 60b6fd399d
commit f045490597
7 changed files with 115 additions and 97 deletions

View File

@@ -235,7 +235,7 @@ if __name__ == '__main__':
sys.exit("Error: No seed")
wallet.init_seed(str(seed))
wallet.save_seed()
wallet.save_seed(password)
if not options.offline:
network = Network(config)
network.start()
@@ -254,16 +254,13 @@ if __name__ == '__main__':
else:
wallet.init_seed(None)
wallet.save_seed()
wallet.save_seed(password)
wallet.synchronize()
print_msg("Your wallet generation seed is:\n\"%s\"" % wallet.get_mnemonic(None))
print_msg("Please keep it in a safe place; if you lose it, you will not be able to restore your wallet.")
print_msg("Wallet saved in '%s'" % wallet.storage.path)
if password:
wallet.update_password(None, password)
# terminate
sys.exit(0)