Skip to content

Commit 62d336e

Browse files
fixup: Provide concrete guidance on event.rs for new event SendWebhookNotifications
1 parent 17db0db commit 62d336e

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

lightning-liquidity/src/lsps5/event.rs

+8-2
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,15 @@ pub enum LSPS5ServiceEvent {
7171
request_id: LSPSRequestId,
7272
},
7373

74-
/// A notification needs to be sent to a client's webhook
75-
///
7674
/// This event occurs when the LSP needs to send a notification to a client's webhook.
75+
///
76+
/// When this event is received, the LSP should:
77+
/// 1. Serialize the notification to JSON
78+
/// 2. Make an HTTP POST request to the provided URL with the given headers and the serialized notification
79+
///
80+
/// When the client receives this notification, they will process it and generate a
81+
/// `WebhookNotificationReceived` event on their side. The client will validate the
82+
/// signature using the LSP's node ID to ensure the notification is authentic.
7783
SendWebhookNotifications {
7884
/// Client node ID to be notified
7985
counterparty_node_id: PublicKey,

0 commit comments

Comments
 (0)