pub struct ChannelTransactionParameters {
    pub holder_pubkeys: ChannelPublicKeys,
    pub holder_selected_contest_delay: u16,
    pub is_outbound_from_holder: bool,
    pub counterparty_parameters: Option<CounterpartyChannelTransactionParameters>,
    pub funding_outpoint: Option<OutPoint>,
    pub opt_anchors: Option<()>,
}
Expand description

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

opt_anchors: Option<()>

Are anchors used for this channel. Boolean is serialization backwards-compatible

Implementations

Whether the late bound parameters are populated.

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.

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Reads a Self in from the given Read

Writes self out to the given Writer

Gets the length of this object after it has been serialized. This can be overridden to optimize cases where we prepend an object with its length. Read more

Writes self out to a Vec

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

Reads a Self in from the given Read

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.