Struct lightning_signer::channel::ChannelStub[][src]

pub struct ChannelStub {
    pub node: Weak<Node>,
    pub nonce: Vec<u8>,
    pub keys: InMemorySigner,
    pub id0: ChannelId,
    // some fields omitted
}
Expand description

A channel takes this form after Node::new_channel, and before Node::ready_channel

Fields

node: Weak<Node>

A backpointer to the node

nonce: Vec<u8>

The channel nonce, used to derive keys

keys: InMemorySigner

The signer for this channel

id0: ChannelId

The initial channel ID, used to find the channel in the node

Trait Implementations

Get the channel basepoints and public keys

Get the per-commitment point for a holder commitment transaction

Get the per-commitment secret for a holder commitment transaction

Check a future secret to support option_data_loss_protect

Get the channel nonce, used to derive the channel keys

Returns the validator for this channel

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

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

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

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.