create new wallet

This commit is contained in:
Christian Rotzoll
2019-04-12 12:47:09 +01:00
parent 64435c64f0
commit c059ec273f

View File

@@ -63,21 +63,21 @@ if mode=="new":
request = ln.GenSeedRequest()
response = stub.GenSeed(request)
print(response)
print(len(response.cipher_seed_mnemonic))
print(response.cipher_seed_mnemonic[1])
print(len(cipher_seed_mnemonic))
seedwords = response.cipher_seed_mnemonic
# TODO: do first https://api.lightning.community/#genseed
#request=False
#if len(seedpassword)>0:
# request = ln.InitWalletRequest(wallet_password=base64.b64encode(walletpassword.decode(),aezeed_passphrase=base64.b64encode(seedpassword).decode())
#else:
#request = ln.InitWalletRequest(
# wallet_password=walletpassword
#)
#response = stub.InitWallet(request)
#print(response)
request = ln.InitWalletRequest(
wallet_password=walletpassword,
cipher_seed_mnemonic=seedwords
)
response = stub.InitWallet(request)
print(response)
elif mode=="seed":