getAlby / hub

Alby Hub - Your own lightning node connected to every app. Run anywhere. Become self-sovereign.
https://albyhub.com
Apache License 2.0
76 stars 13 forks source link

Enable closing all channels using SCBs #53

Open rolznz opened 3 months ago

rolznz commented 3 months ago

We currently save encrypted SCBs to the user's Alby Account. There should be a way in the hub for the user to enter a seed at the onboarding, connect their Alby account and choose to request all channels to be force closed by the counterparty.

This requires changes in LDK-node.

For now, this flow can be done by manually requesting the counterparty to close the channel.

bumi commented 3 months ago

Maybe this can be a different backup/recover app? (to keep this one small and simple)

rolznz commented 1 month ago

From @reneaaron

Let's say we add this option in the advanced setup and a user would upload their SCB. The node would ask peers to FC channels and then initialize with the same seed (so in max. 2 weeks you should see the balances of closed channels turning up in you savings balance?)

I like this flow because for the user it is more convenient, and we also do not need to build and package another app to do this

rolznz commented 1 week ago

Backend part was done in https://github.com/getAlby/hub/pull/693 - but there is no UI yet.

We possibly can move this code to a separate tool to reduce complexity of maintaining this in Alby Hub.