Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ElementsProject/lightning
/ Promise
Class
Promise
plugins/lsps-plugin/src/proto/lsps2.rs:118–118 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
116
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
117
#[serde(try_from =
"String"
)]
118
pub struct Promise(pub String);
119
120
impl Promise {
121
pub const MAX_BYTES: usize = 512;
Callers
7
try_from
Method · 0.85
validate
Method · 0.85
with_promise
Method · 0.85
create_valid_opening_fee_params
Function · 0.85
test_validate_expired_timestamp
Function · 0.85
test_validate_payment_size_overflow
Function · 0.85
test_validate_max_values
Function · 0.85
Calls
no outgoing calls
Tested by
3
test_validate_expired_timestamp
Function · 0.68
test_validate_payment_size_overflow
Function · 0.68
test_validate_max_values
Function · 0.68