Function lightning::ln::chan_utils::get_htlc_redeemscript[][src]

pub fn get_htlc_redeemscript(
    htlc: &HTLCOutputInCommitment,
    keys: &TxCreationKeys
) -> Script
Expand description

Gets the witness redeemscript for an HTLC output in a commitment transaction. Note that htlc does not need to have its previous_output_index filled.