You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This allows the htlc tx output to easily be changed according to the
features of the channel, or the evolution of the LN specification.
The output could even be set to completely arbitrary scripts if
compatibility with the formal LN spec is not required.
Builders of htlc transactions now ask a `ChannelSigner` for the
appropriate revokeable script pubkey to use, and then pass it to the
htlc transaction constructors.
let counterparty_htlc_sig = holder_commitment.counterparty_htlc_sigs[htlc_idx];
1213
+
let revokeable_spk = self.signer.get_revokeable_spk(true, holder_commitment.commitment_number(),&holder_commitment.per_commitment_point(),&self.secp_ctx);
let htlc_tx = build_htlc_transaction(&txid, inner.feerate_per_kw,channel_parameters.contest_delay(),&this_htlc,&self.channel_type_features,&keys.broadcaster_delayed_payment_key,&keys.revocation_key);
1752
+
let htlc_tx = build_htlc_transaction(&txid, inner.feerate_per_kw,&this_htlc,&self.channel_type_features,revokeable_spk.clone());
1755
1753
1756
1754
let htlc_redeemscript = get_htlc_redeemscript_with_explicit_keys(&this_htlc,&self.channel_type_features,&keys.broadcaster_htlc_key,&keys.countersignatory_htlc_key,&keys.revocation_key);
0 commit comments