Struct lightning::ln::chan_utils::BuiltCommitmentTransaction[][src]

pub struct BuiltCommitmentTransaction {
    pub transaction: Transaction,
    pub txid: Txid,
}
Expand description

A pre-built Bitcoin commitment transaction and its txid.

Fields

transaction: Transaction

The commitment transaction

txid: Txid

The txid for the commitment transaction.

This is provided as a performance optimization, instead of calling transaction.txid() multiple times.

Implementations

Get the SIGHASH_ALL sighash value of the transaction.

This can be used to verify a signature.

Sign a transaction, either because we are counter-signing the counterparty’s transaction or because we are about to broadcast a holder transaction.

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

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

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)

recently added

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.