Update static_channel_backup.md

This commit is contained in:
Roy Sheinfeld
2023-12-17 15:45:09 +02:00
committed by GitHub
parent bccd93c77e
commit 29c504da99

View File

@@ -1,11 +1,10 @@
# Static Channel Backup
# Exporting SCB (Static Channel Backup)
A static channel backup is automatically saved by the Breez SDK in the background. More specifically, the static backup is updated
each time a new channel is opened.
An SCB file is automatically generated by the Breez SDK in the background. More specifically, the SCB file is updated whenever a new channel is opened.
The static channel backup can be used as a last resort to recover funds in case the Greenlight node becomes inaccessible. Recovering the funds is currently not part of the Breez SDK. In order to recover the funds, the user can initialize a new core lightning node with its [HSM secret](https://docs.corelightning.org/docs/hsm-secret) using their seed. Then trigger a channel recovery through [the recoverchannel method](https://docs.corelightning.org/reference/lightning-recoverchannel) provided by CLN.
The SCB file can be used as a last resort to recover funds in case the Greenlight node becomes inaccessible ("doom day" scenario). In order to recover the funds using the SBC information, users can initialize a new core lightning node with its [HSM secret](https://docs.corelightning.org/docs/hsm-secret) using their seed. Then, trigger a channel recovery through [the recoverchannel method](https://docs.corelightning.org/reference/lightning-recoverchannel) provided by CLN.
In order to use the recoverchannel method, the user needs to provide the static channel backup file. It can be retrieved from the SDK's working directory as follows:
In order to use the recoverchannel method, the user needs to provide the SCB file. It can be retrieved from the SDK's working directory as follows:
<custom-tabs category="lang">
<div slot="title">Rust</div>