From 21SatsNode at proton.me Wed Feb 8 15:42:10 2023 From: 21SatsNode at proton.me (21Sats) Date: Wed, 08 Feb 2023 04:42:10 +0000 Subject: [c-lightning] Encryption chanbackup Message-ID: Hello, I ask me if it is safe to upload the emergency.recover to a private GitHub repository like in the Raspibolt Guide with the SCB Backup. https://raspibolt.org/guide/lightning/channel-backup.html 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? Greetings From vincenzopalazzodev at gmail.com Tue Feb 14 19:24:45 2023 From: vincenzopalazzodev at gmail.com (Vincenzo Palazzo) Date: Tue, 14 Feb 2023 09:24:45 +0100 Subject: [c-lightning] Encryption chanbackup In-Reply-To: References: Message-ID: 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.