Skip to content

Commit f6d6204

Browse files
adi2011TheBlueMatt
andauthored
fixup: Add method to derive Peer Storage encryption key
Co-authored-by: Matt Corallo <[email protected]>
1 parent 5ef58e9 commit f6d6204

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lightning/src/sign/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -832,8 +832,8 @@ pub trait NodeSigner {
832832
/// Defines a method to derive a 32-byte encryption key for peer storage.
833833
///
834834
/// Implementations of this method must derive a secure encryption key.
835-
/// The derived key is used to encrypt or decrypt peer
836-
/// storage data, ensuring confidentiality and integrity.
835+
/// The key is used to encrypt or decrypt backups of our state stored with our peers.
836+
/// Thus, if you wish to rely on recovery using this method, you should use a key which can be re-derived from data which would be available after state loss (eg the wallet seed)
837837
///
838838
/// # Implementation Details
839839
///

0 commit comments

Comments
 (0)