mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-27 20:16:22 +02:00
create new wallet
This commit is contained in:
@@ -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":
|
||||
|
||||
|
Reference in New Issue
Block a user