From: Elias Rohrer Date: Wed, 27 Mar 2024 10:55:19 +0000 (+0100) Subject: Move `htlc_basepoint` to variable X-Git-Tag: v0.0.123-beta~13^2~10 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=c906fac2936556bd6a1767b88efe0a76dbea42a2;p=rust-lightning Move `htlc_basepoint` to variable --- diff --git a/lightning/src/sign/mod.rs b/lightning/src/sign/mod.rs index e7cee4701..b1d876b3e 100644 --- a/lightning/src/sign/mod.rs +++ b/lightning/src/sign/mod.rs @@ -1229,7 +1229,8 @@ impl EcdsaChannelSigner for InMemorySigner { let counterparty_htlcpubkey = HtlcKey::from_basepoint( &secp_ctx, &counterparty_keys.htlc_basepoint, &per_commitment_point, ); - let htlcpubkey = HtlcKey::from_basepoint(&secp_ctx, &self.pubkeys().htlc_basepoint, &per_commitment_point); + let htlc_basepoint = self.pubkeys().htlc_basepoint; + let htlcpubkey = HtlcKey::from_basepoint(&secp_ctx, &htlc_basepoint, &per_commitment_point); let chan_type = self.channel_type_features().expect(MISSING_PARAMS_ERR); let witness_script = chan_utils::get_htlc_redeemscript_with_explicit_keys(&htlc, chan_type, &counterparty_htlcpubkey, &htlcpubkey, &revocation_pubkey); let mut sighash_parts = sighash::SighashCache::new(htlc_tx);