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§
§impl<'a> DirectedChannelTransactionParameters<'a>
impl<'a> DirectedChannelTransactionParameters<'a>
pub fn broadcaster_pubkeys(&self) -> &'a ChannelPublicKeys
pub fn broadcaster_pubkeys(&self) -> &'a ChannelPublicKeys
Get the channel pubkeys for the broadcaster
pub fn countersignatory_pubkeys(&self) -> &'a ChannelPublicKeys
pub fn countersignatory_pubkeys(&self) -> &'a ChannelPublicKeys
Get the channel pubkeys for the countersignatory
pub 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.
pub 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.
pub fn funding_outpoint(&self) -> OutPoint
pub fn funding_outpoint(&self) -> OutPoint
The funding outpoint
pub fn channel_type_features(&self) -> &'a Features<ChannelTypeContext>
pub fn channel_type_features(&self) -> &'a Features<ChannelTypeContext>
Whether to use anchors for this channel
Auto Trait Implementations§
impl<'a> Freeze for DirectedChannelTransactionParameters<'a>
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§
§impl<T> AnySync for T
impl<T> AnySync for T
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Mutably borrows from an owned value. Read more
§impl<T> Downcast for Twhere
T: AsAny + ?Sized,
impl<T> Downcast for Twhere
T: AsAny + ?Sized,
§fn downcast_ref<T>(&self) -> Option<&T>where
T: AsAny,
fn downcast_ref<T>(&self) -> Option<&T>where
T: AsAny,
Forward to the method defined on the type
Any
.§fn downcast_mut<T>(&mut self) -> Option<&mut T>where
T: AsAny,
fn downcast_mut<T>(&mut self) -> Option<&mut T>where
T: AsAny,
Forward to the method defined on the type
Any
.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request