Struct DirectedChannelTransactionParameters

Source
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§

Source§

impl<'a> DirectedChannelTransactionParameters<'a>

Source

pub fn broadcaster_pubkeys(&self) -> &'a ChannelPublicKeys

Get the channel pubkeys for the broadcaster

Source

pub fn countersignatory_pubkeys(&self) -> &'a ChannelPublicKeys

Get the channel pubkeys for the countersignatory

Source

pub fn contest_delay(&self) -> u16

Get the contest delay applicable to the transactions. Note that the contest delay was selected by the countersignatory.

Source

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.

Source

pub fn funding_outpoint(&self) -> OutPoint

The funding outpoint

Source

pub fn channel_type_features(&self) -> &'a ChannelTypeFeatures

Whether to use anchors for this channel

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V