File tree 1 file changed +8
-2
lines changed
lightning-liquidity/src/lsps5
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -71,9 +71,15 @@ pub enum LSPS5ServiceEvent {
71
71
request_id : LSPSRequestId ,
72
72
} ,
73
73
74
- /// A notification needs to be sent to a client's webhook
75
- ///
76
74
/// 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.
77
83
SendWebhookNotifications {
78
84
/// Client node ID to be notified
79
85
counterparty_node_id : PublicKey ,
You can’t perform that action at this time.
0 commit comments