Function get_htlc_redeemscript

Source
pub fn get_htlc_redeemscript(
    htlc: &HTLCOutputInCommitment,
    channel_type_features: &ChannelTypeFeatures,
    keys: &TxCreationKeys,
) -> ScriptBuf
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.