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
pub fn get_sighash_all(
&self,
funding_redeemscript: &Script,
channel_value_satoshis: u64
) -> Message
pub fn get_sighash_all(
&self,
funding_redeemscript: &Script,
channel_value_satoshis: u64
) -> Message
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
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
impl RefUnwindSafe for BuiltCommitmentTransaction
impl Send for BuiltCommitmentTransaction
impl Sync for BuiltCommitmentTransaction
impl Unpin for BuiltCommitmentTransaction
impl UnwindSafe for BuiltCommitmentTransaction
Blanket Implementations
Mutably borrows from an owned value. Read more