pub struct DirectedChannelTransactionParameters<'a> { /* private fields */ }
Expand description
Static channel fields used to build transactions given per-commitment fields, organized by broadcaster/countersignatory.
This is derived from the holder/counterparty-organized ChannelTransactionParameters via the as_holder_broadcastable and as_counterparty_broadcastable functions.
Implementations
sourceimpl<'a> DirectedChannelTransactionParameters<'a>
impl<'a> DirectedChannelTransactionParameters<'a>
sourcepub fn broadcaster_pubkeys(&self) -> &ChannelPublicKeys
pub fn broadcaster_pubkeys(&self) -> &ChannelPublicKeys
Get the channel pubkeys for the broadcaster
sourcepub fn countersignatory_pubkeys(&self) -> &ChannelPublicKeys
pub fn countersignatory_pubkeys(&self) -> &ChannelPublicKeys
Get the channel pubkeys for the countersignatory
sourcepub fn contest_delay(&self) -> u16
pub fn contest_delay(&self) -> u16
Get the contest delay applicable to the transactions. Note that the contest delay was selected by the countersignatory.
sourcepub fn is_outbound(&self) -> bool
pub fn is_outbound(&self) -> bool
Whether the channel is outbound from the broadcaster.
The boolean representing the side that initiated the channel is an input to the commitment number obscure factor computation.
sourcepub fn funding_outpoint(&self) -> OutPoint
pub fn funding_outpoint(&self) -> OutPoint
The funding outpoint
sourcepub fn opt_anchors(&self) -> bool
pub fn opt_anchors(&self) -> bool
Whether to use anchors for this channel
Auto Trait Implementations
impl<'a> RefUnwindSafe for DirectedChannelTransactionParameters<'a>
impl<'a> Send for DirectedChannelTransactionParameters<'a>
impl<'a> Sync for DirectedChannelTransactionParameters<'a>
impl<'a> Unpin for DirectedChannelTransactionParameters<'a>
impl<'a> UnwindSafe for DirectedChannelTransactionParameters<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more