[c-lightning] Encryption chanbackup

Vincenzo Palazzo vincenzopalazzodev at gmail.com
Tue Feb 14 19:24:45 AEDT 2023


On Wed Feb 8, 2023 at 5:42 AM CET, 21Sats wrote:

> I took a look into the chanbackup.c but don’t understand coding that deep. I understand that there is a xchacha20poly1305 encryption but don’t know where the secret comes from. And I don't know neither of the used encryption is safe for that usecase or what Infos are write into that file.
>
> https://github.com/ElementsProject/lightning/blob/master/plugins/chanbackup.c
>
> Can anybody make this clear?

Yeah the data is encrypted by the function `write_scb`
and decrypt by the function `decrypt_scb`.

I guess in order to access the information in  the file
is needed other info in addition to your peer beckup file.

Cheers!

Vincent.


More information about the c-lightning mailing list