jamaljsr / polar

One-click Bitcoin Lightning networks for local app development & testing
https://lightningpolar.com
MIT License
758 stars 144 forks source link

Seed phrases and channels backup #635

Open we-do-it-lu opened 1 year ago

we-do-it-lu commented 1 year ago

I like Polar and the testnet. Lately I decided to play around with backup/restore of nodes but have not access to seed phrase / channels backups?

Would be nice if the seed phrase could be displayed somewhere; as well as the option to start a new bitcoin node using an existing seed phrase. Similarly for the Lightning Network: "backup channels" button + "restore channels" option.

Many people don't test their recovery strategy, would be nice to get familiarised with this the easy way using Polar 💁‍♂️

jamaljsr commented 1 year ago

Great point. Currently, the Polar nodes use the --noseedbackup flag which automatically generates the seed. I'm not sure if there's a way to obtain the seed when this flag is used.

I agree it would be nice to be able to start the LND nodes in a locked state, then allow the user to create a new wallet and display the seed phrase, or to restore the node from a prior phrase. You could hack your way around using the docker exec command (see https://github.com/jamaljsr/polar/issues/470#issuecomment-852387233), but this obviously isn't very user friendly.

Thanks for the feedback.

Muniru0 commented 6 months ago

@jamaljsr Please has this being fixed ?

jamaljsr commented 6 months ago

No, this hasn't been implemented yet.

Muniru0 commented 6 months ago

Kk... currently I am trying to re-create a certain bug with no success. Can I take on this while I try other means to re-create that bug ?

Muniru0 commented 6 months ago

I have officially taken up this issue.