breez_sdk_core::lightning::ln::chan_utils

Function get_htlc_redeemscript

pub fn get_htlc_redeemscript(
    htlc: &HTLCOutputInCommitment,
    channel_type_features: &Features<ChannelTypeContext>,
    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.