Skip to content

Commit 0c0ca39

Browse files
module documentation and structure
- Add client module to LSPS5 interface alongside event, msgs, service, and utils. - Define and document constants for maximum app name and webhook URL lengths.
1 parent ffa29cd commit 0c0ca39

File tree

1 file changed

+28
-0
lines changed
  • lightning-liquidity/src/lsps5

1 file changed

+28
-0
lines changed

lightning-liquidity/src/lsps5/mod.rs

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
// This file is Copyright its original authors, visible in version control
2+
// history.
3+
//
4+
// This file is licensed under the Apache License, Version 2.0 <LICENSE-APACHE
5+
// or http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
6+
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your option.
7+
// You may not use this file except in accordance with one or both of these
8+
// licenses.
9+
10+
//! LSPS5 Webhook Registration Protocol Implementation
11+
//!
12+
//! Implements BLIP-55: LSP Protocol for Notification Webhook Registration
13+
//!
14+
//! This module provides functionality for Lightning Service Providers to send
15+
//! webhook notifications to their clients, and for clients to register webhooks
16+
//! with LSPs.
17+
18+
pub mod client;
19+
pub mod event;
20+
pub mod msgs;
21+
pub mod service;
22+
pub mod utils;
23+
24+
/// Maximum allowed length for an app_name (in bytes)
25+
pub const MAX_APP_NAME_LENGTH: usize = 64;
26+
27+
/// Maximum allowed length for a webhook URL (in characters)
28+
pub const MAX_WEBHOOK_URL_LENGTH: usize = 1024;

0 commit comments

Comments
 (0)