Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chanbackup+peer: implement protocol extensions for encrypted peer storage #8154

Open
Roasbeef opened this issue Nov 7, 2023 · 0 comments
Open
Labels
needs triage p2p Code related to the peer-to-peer behaviour SCB Related to static channel backup spec

Comments

@Roasbeef
Copy link
Member

Roasbeef commented Nov 7, 2023

We should implement this write up for a small cut out of encrytped storage for each peer: lightning/bolts#1110. This helps for the case where maybe you lost everything but your seed, and you also had mainly/all public channels. Once you boot your node back up, you can download gossip, then go seek out those peers to give you your encrypted backup.

We should be able to use the SCB scheme as is, since it's already encrypted with an AEAD scheme. On the implementation side, we should take care to ensure that each peer only has as a fixed amount of storage allocated, that these are cleaned up on a delay after all channels are closed, and it might be useful to have some RPCs to fetch/store this data on demand.

The SCB flow should also be updated to attempt to fall back to this method, if we start p in recovery mode with a partial SCB (would need a new explicit path).

@Roasbeef Roasbeef added bug Unintended code behaviour p2p Code related to the peer-to-peer behaviour spec SCB Related to static channel backup needs triage labels Nov 7, 2023
@Roasbeef Roasbeef removed the bug Unintended code behaviour label Feb 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs triage p2p Code related to the peer-to-peer behaviour SCB Related to static channel backup spec
Projects
None yet
Development

No branches or pull requests

1 participant