Skip to content

Commit 411b312

Browse files
fixup: sign_message doc now clarifies about the prefix before signing
1 parent 0137c7c commit 411b312

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lightning/src/sign/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -933,7 +933,8 @@ pub trait NodeSigner {
933933

934934
/// Sign an arbitrary message with the node's secret key.
935935
///
936-
/// Creates a digital signature of a message given the node's secret.
936+
/// Creates a digital signature of a message given the node's secret. The message is prefixed
937+
/// with "Lightning Signed Message:" before signing.
937938
/// A receiver knowing the node's id and the message can be sure that the signature was generated by the caller.
938939
/// An `Err` can be returned to signal that the signer is unavailable / cannot produce a valid
939940
/// signature.

0 commit comments

Comments
 (0)