Struct lightning::ln::chan_utils::ChannelTransactionParameters [−][src]
Per-channel data used to build transactions in conjunction with the per-commitment data (CommitmentTransaction). The fields are organized by holder/counterparty.
Normally, this is converted to the broadcaster/countersignatory-organized DirectedChannelTransactionParameters before use, via the as_holder_broadcastable and as_counterparty_broadcastable functions.
Fields
holder_pubkeys: ChannelPublicKeys
Holder public keys
holder_selected_contest_delay: u16
The contest delay selected by the holder, which applies to counterparty-broadcast transactions
is_outbound_from_holder: bool
Whether the holder is the initiator of this channel. This is an input to the commitment number obscure factor computation.
counterparty_parameters: Option<CounterpartyChannelTransactionParameters>
The late-bound counterparty channel transaction parameters. These parameters are populated at the point in the protocol where the counterparty provides them.
funding_outpoint: Option<OutPoint>
The late-bound funding outpoint
Implementations
impl ChannelTransactionParameters
[src]
pub fn is_populated(&self) -> bool
[src]
Whether the late bound parameters are populated.
pub fn as_holder_broadcastable(
&self
) -> DirectedChannelTransactionParameters<'_>
[src]
&self
) -> DirectedChannelTransactionParameters<'_>
Convert the holder/counterparty parameters to broadcaster/countersignatory-organized parameters, given that the holder is the broadcaster.
self.is_populated() must be true before calling this function.
pub fn as_counterparty_broadcastable(
&self
) -> DirectedChannelTransactionParameters<'_>
[src]
&self
) -> DirectedChannelTransactionParameters<'_>
Convert the holder/counterparty parameters to broadcaster/countersignatory-organized parameters, given that the counterparty is the broadcaster.
self.is_populated() must be true before calling this function.
Trait Implementations
impl Clone for ChannelTransactionParameters
[src]
fn clone(&self) -> ChannelTransactionParameters
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Readable for ChannelTransactionParameters
[src]
impl Writeable for ChannelTransactionParameters
[src]
Auto Trait Implementations
impl RefUnwindSafe for ChannelTransactionParameters
impl Send for ChannelTransactionParameters
impl Sync for ChannelTransactionParameters
impl Unpin for ChannelTransactionParameters
impl UnwindSafe for ChannelTransactionParameters
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,