pub struct OpeningFeeParams {
pub min_fee_msat: u64,
pub proportional: u32,
pub valid_until: DateTime<Utc>,
pub min_lifetime: u32,
pub max_client_to_self_delay: u32,
pub min_payment_size_msat: u64,
pub max_payment_size_msat: u64,
pub promise: String,
}
Expand description
Fees and parameters for a JIT Channel including the promise.
The promise is an HMAC calculated using a secret known to the LSP and the rest of the fields as input. It exists so the LSP can verify the authenticity of a client provided OpeningFeeParams by recalculating the promise using the secret. Once verified they can be confident it was not modified by the client.
Fields§
§min_fee_msat: u64
The minimum fee required for the channel open.
proportional: u32
A fee proportional to the size of the initial payment.
valid_until: DateTime<Utc>
An ISO8601
formatted date for which these params are valid.
min_lifetime: u32
The number of blocks after confirmation that the LSP promises it will keep the channel alive without closing.
max_client_to_self_delay: u32
The maximum number of blocks that the client is allowed to set its to_self_delay
parameter.
min_payment_size_msat: u64
The minimum payment size that the LSP will accept when opening a channel.
max_payment_size_msat: u64
The maximum payment size that the LSP will accept when opening a channel.
promise: String
The HMAC used to verify the authenticity of these parameters.
Trait Implementations§
Source§impl Clone for OpeningFeeParams
impl Clone for OpeningFeeParams
Source§fn clone(&self) -> OpeningFeeParams
fn clone(&self) -> OpeningFeeParams
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more