pub struct TrustedClosingTransaction<'a> { /* private fields */ }
Expand description

A wrapper on ClosingTransaction indicating that the built bitcoin transaction is trusted.

See trust() and verify() functions on CommitmentTransaction.

This structure implements Deref.

Implementations

The pre-built Bitcoin commitment transaction

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.

Methods from Deref<Target = ClosingTransaction>

Trust our pre-built transaction.

Applies a wrapper which allows access to the transaction.

This should only be used if you fully trust the builder of this object. It should not be used by an external signer - instead use the verify function.

Verify our pre-built transaction.

Applies a wrapper which allows access to the transaction.

An external validating signer must call this method before signing or using the built transaction.

The value to be sent to the holder, or zero if the output will be omitted

The value to be sent to the counterparty, or zero if the output will be omitted

The destination of the holder’s output

The destination of the counterparty’s output

Trait Implementations

The resulting type after dereferencing.

Dereferences the value.

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.

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.