pub struct LSPS2OpeningFeeParams {
pub min_fee_msat: u64,
pub proportional: u32,
pub valid_until: LSPSDateTime,
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 LSPS2OpeningFeeParams by recalculating the promise using the secret. Once verified they can be confident it was not modified by the client.
Fields§
§min_fee_msat: u64The minimum fee required for the channel open.
proportional: u32A fee proportional to the size of the initial payment.
valid_until: LSPSDateTimeAn ISO8601 formatted date for which these params are valid.
min_lifetime: u32The number of blocks after confirmation that the LSP promises it will keep the channel alive without closing.
max_client_to_self_delay: u32The maximum number of blocks that the client is allowed to set its to_self_delay parameter.
min_payment_size_msat: u64The minimum payment size that the LSP will accept when opening a channel.
max_payment_size_msat: u64The maximum payment size that the LSP will accept when opening a channel.
promise: StringThe HMAC used to verify the authenticity of these parameters.
Trait Implementations§
Source§impl Clone for LSPS2OpeningFeeParams
impl Clone for LSPS2OpeningFeeParams
Source§fn clone(&self) -> LSPS2OpeningFeeParams
fn clone(&self) -> LSPS2OpeningFeeParams
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for LSPS2OpeningFeeParams
impl Debug for LSPS2OpeningFeeParams
Source§impl<'de> Deserialize<'de> for LSPS2OpeningFeeParams
impl<'de> Deserialize<'de> for LSPS2OpeningFeeParams
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for LSPS2OpeningFeeParams
impl PartialEq for LSPS2OpeningFeeParams
Source§impl Readable for LSPS2OpeningFeeParams
impl Readable for LSPS2OpeningFeeParams
Source§impl Serialize for LSPS2OpeningFeeParams
impl Serialize for LSPS2OpeningFeeParams
Source§impl Writeable for LSPS2OpeningFeeParams
impl Writeable for LSPS2OpeningFeeParams
impl Eq for LSPS2OpeningFeeParams
impl StructuralPartialEq for LSPS2OpeningFeeParams
Auto Trait Implementations§
impl Freeze for LSPS2OpeningFeeParams
impl RefUnwindSafe for LSPS2OpeningFeeParams
impl Send for LSPS2OpeningFeeParams
impl Sync for LSPS2OpeningFeeParams
impl Unpin for LSPS2OpeningFeeParams
impl UnwindSafe for LSPS2OpeningFeeParams
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> LengthReadable for Twhere
T: Readable,
impl<T> LengthReadable for Twhere
T: Readable,
Source§fn read_from_fixed_length_buffer<R>(reader: &mut R) -> Result<T, DecodeError>where
R: LengthLimitedRead,
fn read_from_fixed_length_buffer<R>(reader: &mut R) -> Result<T, DecodeError>where
R: LengthLimitedRead,
Self in from the given LengthLimitedRead.