|
@ -250,12 +250,10 @@ if __name__ == '__main__': |
|
|
else: |
|
|
else: |
|
|
import getpass |
|
|
import getpass |
|
|
seed = getpass.getpass(prompt="seed:", stream=None) if options.concealed else raw_input("seed:") |
|
|
seed = getpass.getpass(prompt="seed:", stream=None) if options.concealed else raw_input("seed:") |
|
|
if not seed: |
|
|
if not Wallet.is_seed(seed): |
|
|
sys.exit("Error: Seed cannot be empty") |
|
|
|
|
|
wallet = Wallet.from_seed(str(seed),storage) |
|
|
|
|
|
if not wallet: |
|
|
|
|
|
sys.exit("Error: Invalid seed") |
|
|
sys.exit("Error: Invalid seed") |
|
|
wallet.save_seed(password) |
|
|
wallet = Wallet.from_seed(seed, storage) |
|
|
|
|
|
wallet.add_seed(seed, password) |
|
|
wallet.create_accounts(password) |
|
|
wallet.create_accounts(password) |
|
|
|
|
|
|
|
|
if not options.offline: |
|
|
if not options.offline: |
|
|