Skip to content

Commit 181265c

Browse files
committed
ChannelKeys - provide to_self_delay alongside the remote channel pubkeys
In the phase 2 signer, we will construct the commitment transaction inside the signer. In preparation, provide needed channel related data.
1 parent ed84b02 commit 181265c

File tree

5 files changed

+81
-48
lines changed

5 files changed

+81
-48
lines changed

lightning/src/chain/keysinterface.rs

Lines changed: 58 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ pub enum SpendableOutputDescriptor {
6969
///
7070
/// To derive the remote_revocation_pubkey provided here (which is used in the witness
7171
/// script generation), you must pass the remote revocation_basepoint (which appears in the
72-
/// call to ChannelKeys::set_remote_channel_pubkeys) and the provided per_commitment point
72+
/// call to ChannelKeys::on_accept) and the provided per_commitment point
7373
/// to chan_utils::derive_public_revocation_key.
7474
///
7575
/// The witness script which is hashed and included in the output script_pubkey may be
@@ -223,7 +223,7 @@ pub trait ChannelKeys : Send+Clone {
223223
// TODO: Document the things someone using this interface should enforce before signing.
224224
// TODO: Add more input vars to enable better checking (preferably removing commitment_tx and
225225
// making the callee generate it via some util function we expose)!
226-
fn sign_remote_commitment<T: secp256k1::Signing + secp256k1::Verification>(&self, feerate_per_kw: u32, commitment_tx: &Transaction, keys: &TxCreationKeys, htlcs: &[&HTLCOutputInCommitment], to_self_delay: u16, secp_ctx: &Secp256k1<T>) -> Result<(Signature, Vec<Signature>), ()>;
226+
fn sign_remote_commitment<T: secp256k1::Signing + secp256k1::Verification>(&self, feerate_per_kw: u32, commitment_tx: &Transaction, keys: &TxCreationKeys, htlcs: &[&HTLCOutputInCommitment], secp_ctx: &Secp256k1<T>) -> Result<(Signature, Vec<Signature>), ()>;
227227

228228
/// Create a signature for a local commitment transaction. This will only ever be called with
229229
/// the same local_commitment_tx (or a copy thereof), though there are currently no guarantees
@@ -254,7 +254,7 @@ pub trait ChannelKeys : Send+Clone {
254254
/// (implying they were considered dust at the time the commitment transaction was negotiated),
255255
/// a corresponding None should be included in the return value. All other positions in the
256256
/// return value must contain a signature.
257-
fn sign_local_commitment_htlc_transactions<T: secp256k1::Signing + secp256k1::Verification>(&self, local_commitment_tx: &LocalCommitmentTransaction, local_csv: u16, secp_ctx: &Secp256k1<T>) -> Result<Vec<Option<Signature>>, ()>;
257+
fn sign_local_commitment_htlc_transactions<T: secp256k1::Signing + secp256k1::Verification>(&self, local_commitment_tx: &LocalCommitmentTransaction, secp_ctx: &Secp256k1<T>) -> Result<Vec<Option<Signature>>, ()>;
258258

259259
/// Create a signature for the given input in a transaction spending an HTLC or commitment
260260
/// transaction output when our counterparty broadcasts an old state.
@@ -313,11 +313,13 @@ pub trait ChannelKeys : Send+Clone {
313313
/// protocol.
314314
fn sign_channel_announcement<T: secp256k1::Signing>(&self, msg: &msgs::UnsignedChannelAnnouncement, secp_ctx: &Secp256k1<T>) -> Result<Signature, ()>;
315315

316-
/// Set the remote channel basepoints. This is done immediately on incoming channels
317-
/// and as soon as the channel is accepted on outgoing channels.
316+
/// Set the remote channel basepoints and remote/local to_self_delay.
317+
/// This is done immediately on incoming channels and as soon as the channel is accepted on outgoing channels.
318+
///
319+
/// We bind local_to_safe_delay late here for API convenience.
318320
///
319321
/// Will be called before any signatures are applied.
320-
fn set_remote_channel_pubkeys(&mut self, channel_points: &ChannelPublicKeys);
322+
fn on_accept(&mut self, channel_points: &ChannelPublicKeys, remote_to_self_delay: u16, local_to_self_delay: u16);
321323
}
322324

323325
/// A trait to describe an object which can get user secrets and key material.
@@ -342,6 +344,18 @@ pub trait KeysInterface: Send + Sync {
342344
fn get_channel_id(&self) -> [u8; 32];
343345
}
344346

347+
#[derive(Clone)]
348+
/// Holds late-bound channel data
349+
/// This data is available after the remote accepted the channel.
350+
pub struct AcceptedChannelData {
351+
/// Remote public keys and base points
352+
pub(crate) remote_channel_pubkeys: ChannelPublicKeys,
353+
/// Remote to_self_delay
354+
pub(crate) remote_to_self_delay: u16,
355+
/// Local to_self_delay
356+
pub(crate) local_to_self_delay: u16,
357+
}
358+
345359
#[derive(Clone)]
346360
/// A simple implementation of ChannelKeys that just keeps the private keys in memory.
347361
pub struct InMemoryChannelKeys {
@@ -359,8 +373,8 @@ pub struct InMemoryChannelKeys {
359373
pub commitment_seed: [u8; 32],
360374
/// Local public keys and basepoints
361375
pub(crate) local_channel_pubkeys: ChannelPublicKeys,
362-
/// Remote public keys and base points
363-
pub(crate) remote_channel_pubkeys: Option<ChannelPublicKeys>,
376+
/// Remote public keys and remote/local to_self_delay, populated on channel acceptance
377+
pub(crate) accepted_channel_data: Option<AcceptedChannelData>,
364378
/// The total value of this channel
365379
channel_value_satoshis: u64,
366380
/// Key derivation parameters
@@ -392,7 +406,7 @@ impl InMemoryChannelKeys {
392406
commitment_seed,
393407
channel_value_satoshis,
394408
local_channel_pubkeys,
395-
remote_channel_pubkeys: None,
409+
accepted_channel_data: None,
396410
key_derivation_params,
397411
}
398412
}
@@ -413,7 +427,17 @@ impl InMemoryChannelKeys {
413427
}
414428
}
415429

416-
fn remote_pubkeys<'a>(&'a self) -> &'a ChannelPublicKeys { self.remote_channel_pubkeys.as_ref().unwrap() }
430+
/// Remote pubkeys
431+
/// Will panic if the remote pubkeys were not set with on_accept
432+
pub fn remote_pubkeys(&self) -> &ChannelPublicKeys { &self.accepted_channel_data.as_ref().unwrap().remote_channel_pubkeys }
433+
434+
/// Remote to-self delay, constraining local commitment txs
435+
/// Will panic if the remote pubkeys were not set with on_accept
436+
pub fn remote_to_self_delay(&self) -> u16 { self.accepted_channel_data.as_ref().unwrap().remote_to_self_delay }
437+
438+
/// Local to-self delay, constraining remote commitment txs
439+
/// Will panic if the remote pubkeys were not set with on_accept
440+
pub fn local_to_self_delay(&self) -> u16 { self.accepted_channel_data.as_ref().unwrap().local_to_self_delay }
417441
}
418442

419443
impl ChannelKeys for InMemoryChannelKeys {
@@ -429,12 +453,12 @@ impl ChannelKeys for InMemoryChannelKeys {
429453
fn pubkeys(&self) -> &ChannelPublicKeys { &self.local_channel_pubkeys }
430454
fn key_derivation_params(&self) -> (u64, u64) { self.key_derivation_params }
431455

432-
fn sign_remote_commitment<T: secp256k1::Signing + secp256k1::Verification>(&self, feerate_per_kw: u32, commitment_tx: &Transaction, keys: &TxCreationKeys, htlcs: &[&HTLCOutputInCommitment], to_self_delay: u16, secp_ctx: &Secp256k1<T>) -> Result<(Signature, Vec<Signature>), ()> {
456+
fn sign_remote_commitment<T: secp256k1::Signing + secp256k1::Verification>(&self, feerate_per_kw: u32, commitment_tx: &Transaction, keys: &TxCreationKeys, htlcs: &[&HTLCOutputInCommitment], secp_ctx: &Secp256k1<T>) -> Result<(Signature, Vec<Signature>), ()> {
433457
if commitment_tx.input.len() != 1 { return Err(()); }
434458

435459
let funding_pubkey = PublicKey::from_secret_key(secp_ctx, &self.funding_key);
436-
let remote_channel_pubkeys = self.remote_channel_pubkeys.as_ref().expect("must set remote channel pubkeys before signing");
437-
let channel_funding_redeemscript = make_funding_redeemscript(&funding_pubkey, &remote_channel_pubkeys.funding_pubkey);
460+
let accepted_data = self.accepted_channel_data.as_ref().expect("must accept before signing");
461+
let channel_funding_redeemscript = make_funding_redeemscript(&funding_pubkey, &accepted_data.remote_channel_pubkeys.funding_pubkey);
438462

439463
let commitment_sighash = hash_to_message!(&bip143::SighashComponents::new(&commitment_tx).sighash_all(&commitment_tx.input[0], &channel_funding_redeemscript, self.channel_value_satoshis)[..]);
440464
let commitment_sig = secp_ctx.sign(&commitment_sighash, &self.funding_key);
@@ -444,7 +468,7 @@ impl ChannelKeys for InMemoryChannelKeys {
444468
let mut htlc_sigs = Vec::with_capacity(htlcs.len());
445469
for ref htlc in htlcs {
446470
if let Some(_) = htlc.transaction_output_index {
447-
let htlc_tx = chan_utils::build_htlc_transaction(&commitment_txid, feerate_per_kw, to_self_delay, htlc, &keys.a_delayed_payment_key, &keys.revocation_key);
471+
let htlc_tx = chan_utils::build_htlc_transaction(&commitment_txid, feerate_per_kw, accepted_data.local_to_self_delay, htlc, &keys.a_delayed_payment_key, &keys.revocation_key);
448472
let htlc_redeemscript = chan_utils::get_htlc_redeemscript(&htlc, &keys);
449473
let htlc_sighash = hash_to_message!(&bip143::SighashComponents::new(&htlc_tx).sighash_all(&htlc_tx.input[0], &htlc_redeemscript, htlc.amount_msat / 1000)[..]);
450474
let our_htlc_key = match chan_utils::derive_private_key(&secp_ctx, &keys.per_commitment_point, &self.htlc_base_key) {
@@ -460,22 +484,23 @@ impl ChannelKeys for InMemoryChannelKeys {
460484

461485
fn sign_local_commitment<T: secp256k1::Signing + secp256k1::Verification>(&self, local_commitment_tx: &LocalCommitmentTransaction, secp_ctx: &Secp256k1<T>) -> Result<Signature, ()> {
462486
let funding_pubkey = PublicKey::from_secret_key(secp_ctx, &self.funding_key);
463-
let remote_channel_pubkeys = self.remote_channel_pubkeys.as_ref().expect("must set remote channel pubkeys before signing");
464-
let channel_funding_redeemscript = make_funding_redeemscript(&funding_pubkey, &remote_channel_pubkeys.funding_pubkey);
487+
let remote_channel_data = self.accepted_channel_data.as_ref().expect("must accept before signing");
488+
let channel_funding_redeemscript = make_funding_redeemscript(&funding_pubkey, &remote_channel_data.remote_channel_pubkeys.funding_pubkey);
465489

466490
Ok(local_commitment_tx.get_local_sig(&self.funding_key, &channel_funding_redeemscript, self.channel_value_satoshis, secp_ctx))
467491
}
468492

469493
#[cfg(test)]
470494
fn unsafe_sign_local_commitment<T: secp256k1::Signing + secp256k1::Verification>(&self, local_commitment_tx: &LocalCommitmentTransaction, secp_ctx: &Secp256k1<T>) -> Result<Signature, ()> {
471495
let funding_pubkey = PublicKey::from_secret_key(secp_ctx, &self.funding_key);
472-
let remote_channel_pubkeys = self.remote_channel_pubkeys.as_ref().expect("must set remote channel pubkeys before signing");
496+
let remote_channel_pubkeys = &self.accepted_channel_data.as_ref().expect("must accept before signing").remote_channel_pubkeys;
473497
let channel_funding_redeemscript = make_funding_redeemscript(&funding_pubkey, &remote_channel_pubkeys.funding_pubkey);
474498

475499
Ok(local_commitment_tx.get_local_sig(&self.funding_key, &channel_funding_redeemscript, self.channel_value_satoshis, secp_ctx))
476500
}
477501

478-
fn sign_local_commitment_htlc_transactions<T: secp256k1::Signing + secp256k1::Verification>(&self, local_commitment_tx: &LocalCommitmentTransaction, local_csv: u16, secp_ctx: &Secp256k1<T>) -> Result<Vec<Option<Signature>>, ()> {
502+
fn sign_local_commitment_htlc_transactions<T: secp256k1::Signing + secp256k1::Verification>(&self, local_commitment_tx: &LocalCommitmentTransaction, secp_ctx: &Secp256k1<T>) -> Result<Vec<Option<Signature>>, ()> {
503+
let local_csv = self.accepted_channel_data.as_ref().unwrap().remote_to_self_delay;
479504
local_commitment_tx.get_htlc_sigs(&self.htlc_base_key, local_csv, secp_ctx)
480505
}
481506

@@ -532,9 +557,9 @@ impl ChannelKeys for InMemoryChannelKeys {
532557
if closing_tx.input[0].witness.len() != 0 { return Err(()); }
533558
if closing_tx.output.len() > 2 { return Err(()); }
534559

535-
let remote_channel_pubkeys = self.remote_channel_pubkeys.as_ref().expect("must set remote channel pubkeys before signing");
536560
let funding_pubkey = PublicKey::from_secret_key(secp_ctx, &self.funding_key);
537-
let channel_funding_redeemscript = make_funding_redeemscript(&funding_pubkey, &remote_channel_pubkeys.funding_pubkey);
561+
let remote_channel_data = self.accepted_channel_data.as_ref().expect("must accept before signing");
562+
let channel_funding_redeemscript = make_funding_redeemscript(&funding_pubkey, &remote_channel_data.remote_channel_pubkeys.funding_pubkey);
538563

539564
let sighash = hash_to_message!(&bip143::SighashComponents::new(closing_tx)
540565
.sighash_all(&closing_tx.input[0], &channel_funding_redeemscript, self.channel_value_satoshis)[..]);
@@ -546,12 +571,19 @@ impl ChannelKeys for InMemoryChannelKeys {
546571
Ok(secp_ctx.sign(&msghash, &self.funding_key))
547572
}
548573

549-
fn set_remote_channel_pubkeys(&mut self, channel_pubkeys: &ChannelPublicKeys) {
550-
assert!(self.remote_channel_pubkeys.is_none(), "Already set remote channel pubkeys");
551-
self.remote_channel_pubkeys = Some(channel_pubkeys.clone());
574+
fn on_accept(&mut self, channel_pubkeys: &ChannelPublicKeys, remote_to_self_delay: u16, local_to_self_delay: u16) {
575+
assert!(self.accepted_channel_data.is_none(), "Already accepted");
576+
self.accepted_channel_data = Some(AcceptedChannelData {
577+
remote_channel_pubkeys: channel_pubkeys.clone(),
578+
remote_to_self_delay,
579+
local_to_self_delay,
580+
});
552581
}
553582
}
554583

584+
impl_writeable!(AcceptedChannelData, 0,
585+
{ remote_channel_pubkeys, remote_to_self_delay, local_to_self_delay });
586+
555587
impl Writeable for InMemoryChannelKeys {
556588
fn write<W: Writer>(&self, writer: &mut W) -> Result<(), Error> {
557589
self.funding_key.write(writer)?;
@@ -560,7 +592,7 @@ impl Writeable for InMemoryChannelKeys {
560592
self.delayed_payment_base_key.write(writer)?;
561593
self.htlc_base_key.write(writer)?;
562594
self.commitment_seed.write(writer)?;
563-
self.remote_channel_pubkeys.write(writer)?;
595+
self.accepted_channel_data.write(writer)?;
564596
self.channel_value_satoshis.write(writer)?;
565597
self.key_derivation_params.0.write(writer)?;
566598
self.key_derivation_params.1.write(writer)?;
@@ -577,7 +609,7 @@ impl Readable for InMemoryChannelKeys {
577609
let delayed_payment_base_key = Readable::read(reader)?;
578610
let htlc_base_key = Readable::read(reader)?;
579611
let commitment_seed = Readable::read(reader)?;
580-
let remote_channel_pubkeys = Readable::read(reader)?;
612+
let remote_channel_data = Readable::read(reader)?;
581613
let channel_value_satoshis = Readable::read(reader)?;
582614
let secp_ctx = Secp256k1::signing_only();
583615
let local_channel_pubkeys =
@@ -596,7 +628,7 @@ impl Readable for InMemoryChannelKeys {
596628
commitment_seed,
597629
channel_value_satoshis,
598630
local_channel_pubkeys,
599-
remote_channel_pubkeys,
631+
accepted_channel_data: remote_channel_data,
600632
key_derivation_params: (params_1, params_2),
601633
})
602634
}

lightning/src/ln/channel.rs

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -458,6 +458,7 @@ impl<ChanSigner: ChannelKeys> Channel<ChanSigner> {
458458
where K::Target: KeysInterface<ChanKeySigner = ChanSigner>,
459459
F::Target: FeeEstimator,
460460
{
461+
let our_to_self_delay = config.own_channel_config.our_to_self_delay;
461462
let chan_keys = keys_provider.get_channel_keys(false, channel_value_satoshis);
462463

463464
if channel_value_satoshis >= MAX_FUNDING_SATOSHIS {
@@ -467,8 +468,8 @@ impl<ChanSigner: ChannelKeys> Channel<ChanSigner> {
467468
if push_msat > channel_value_msat {
468469
return Err(APIError::APIMisuseError { err: format!("Push value ({}) was larger than channel_value ({})", push_msat, channel_value_msat) });
469470
}
470-
if config.own_channel_config.our_to_self_delay < BREAKDOWN_TIMEOUT {
471-
return Err(APIError::APIMisuseError {err: format!("Configured with an unreasonable our_to_self_delay ({}) putting user funds at risks", config.own_channel_config.our_to_self_delay)});
471+
if our_to_self_delay < BREAKDOWN_TIMEOUT {
472+
return Err(APIError::APIMisuseError {err: format!("Configured with an unreasonable our_to_self_delay ({}) putting user funds at risks", our_to_self_delay)});
472473
}
473474
let background_feerate = fee_estimator.get_est_sat_per_1000_weight(ConfirmationTarget::Background);
474475
if Channel::<ChanSigner>::get_remote_channel_reserve_satoshis(channel_value_satoshis) < Channel::<ChanSigner>::derive_our_dust_limit_satoshis(background_feerate) {
@@ -535,7 +536,7 @@ impl<ChanSigner: ChannelKeys> Channel<ChanSigner> {
535536
their_htlc_minimum_msat: 0,
536537
our_htlc_minimum_msat: if config.own_channel_config.our_htlc_minimum_msat == 0 { 1 } else { config.own_channel_config.our_htlc_minimum_msat },
537538
their_to_self_delay: 0,
538-
our_to_self_delay: config.own_channel_config.our_to_self_delay,
539+
our_to_self_delay,
539540
their_max_accepted_htlcs: 0,
540541
minimum_depth: 0, // Filled in in accept_channel
541542

@@ -582,7 +583,7 @@ impl<ChanSigner: ChannelKeys> Channel<ChanSigner> {
582583
delayed_payment_basepoint: msg.delayed_payment_basepoint,
583584
htlc_basepoint: msg.htlc_basepoint
584585
};
585-
chan_keys.set_remote_channel_pubkeys(&their_pubkeys);
586+
chan_keys.on_accept(&their_pubkeys, msg.to_self_delay, config.own_channel_config.our_to_self_delay);
586587
let mut local_config = (*config).channel_options.clone();
587588

588589
if config.own_channel_config.our_to_self_delay < BREAKDOWN_TIMEOUT {
@@ -1457,7 +1458,7 @@ impl<ChanSigner: ChannelKeys> Channel<ChanSigner> {
14571458
htlc_basepoint: msg.htlc_basepoint
14581459
};
14591460

1460-
self.local_keys.set_remote_channel_pubkeys(&their_pubkeys);
1461+
self.local_keys.on_accept(&their_pubkeys, msg.to_self_delay, self.our_to_self_delay);
14611462
self.their_pubkeys = Some(their_pubkeys);
14621463

14631464
self.their_cur_commitment_point = Some(msg.first_per_commitment_point);
@@ -1483,7 +1484,7 @@ impl<ChanSigner: ChannelKeys> Channel<ChanSigner> {
14831484

14841485
let remote_keys = self.build_remote_transaction_keys()?;
14851486
let remote_initial_commitment_tx = self.build_commitment_transaction(self.cur_remote_commitment_transaction_number, &remote_keys, false, false, self.feerate_per_kw, logger).0;
1486-
let remote_signature = self.local_keys.sign_remote_commitment(self.feerate_per_kw, &remote_initial_commitment_tx, &remote_keys, &Vec::new(), self.our_to_self_delay, &self.secp_ctx)
1487+
let remote_signature = self.local_keys.sign_remote_commitment(self.feerate_per_kw, &remote_initial_commitment_tx, &remote_keys, &Vec::new(), &self.secp_ctx)
14871488
.map_err(|_| ChannelError::Close("Failed to get signatures for new commitment_signed".to_owned()))?.0;
14881489

14891490
// We sign the "remote" commitment transaction, allowing them to broadcast the tx if they wish.
@@ -3512,7 +3513,7 @@ impl<ChanSigner: ChannelKeys> Channel<ChanSigner> {
35123513
fn get_outbound_funding_created_signature<L: Deref>(&mut self, logger: &L) -> Result<Signature, ChannelError> where L::Target: Logger {
35133514
let remote_keys = self.build_remote_transaction_keys()?;
35143515
let remote_initial_commitment_tx = self.build_commitment_transaction(self.cur_remote_commitment_transaction_number, &remote_keys, false, false, self.feerate_per_kw, logger).0;
3515-
Ok(self.local_keys.sign_remote_commitment(self.feerate_per_kw, &remote_initial_commitment_tx, &remote_keys, &Vec::new(), self.our_to_self_delay, &self.secp_ctx)
3516+
Ok(self.local_keys.sign_remote_commitment(self.feerate_per_kw, &remote_initial_commitment_tx, &remote_keys, &Vec::new(), &self.secp_ctx)
35163517
.map_err(|_| ChannelError::Close("Failed to get signatures for new commitment_signed".to_owned()))?.0)
35173518
}
35183519

@@ -3865,7 +3866,7 @@ impl<ChanSigner: ChannelKeys> Channel<ChanSigner> {
38653866
htlcs.push(htlc);
38663867
}
38673868

3868-
let res = self.local_keys.sign_remote_commitment(feerate_per_kw, &remote_commitment_tx.0, &remote_keys, &htlcs, self.our_to_self_delay, &self.secp_ctx)
3869+
let res = self.local_keys.sign_remote_commitment(feerate_per_kw, &remote_commitment_tx.0, &remote_keys, &htlcs, &self.secp_ctx)
38693870
.map_err(|_| ChannelError::Close("Failed to get signatures for new commitment_signed".to_owned()))?;
38703871
signature = res.0;
38713872
htlc_signatures = res.1;
@@ -4658,7 +4659,7 @@ mod tests {
46584659
delayed_payment_basepoint: public_from_secret_hex(&secp_ctx, "1552dfba4f6cf29a62a0af13c8d6981d36d0ef8d61ba10fb0fe90da7634d7e13"),
46594660
htlc_basepoint: public_from_secret_hex(&secp_ctx, "4444444444444444444444444444444444444444444444444444444444444444")
46604661
};
4661-
chan_keys.set_remote_channel_pubkeys(&their_pubkeys);
4662+
chan_keys.on_accept(&their_pubkeys, chan.their_to_self_delay, chan.our_to_self_delay);
46624663

46634664
assert_eq!(their_pubkeys.payment_point.serialize()[..],
46644665
hex::decode("032c0b7cf95324a07d05398b240174dc0c2be444d96b159aa6c7f7b1e668680991").unwrap()[..]);
@@ -4714,7 +4715,7 @@ mod tests {
47144715
assert_eq!(serialize(&localtx.add_local_sig(&redeemscript, local_sig))[..],
47154716
hex::decode($tx_hex).unwrap()[..]);
47164717

4717-
let htlc_sigs = chan_keys.sign_local_commitment_htlc_transactions(&localtx, chan.their_to_self_delay, &chan.secp_ctx).unwrap();
4718+
let htlc_sigs = chan_keys.sign_local_commitment_htlc_transactions(&localtx, &chan.secp_ctx).unwrap();
47184719
let mut htlc_sig_iter = localtx.per_htlc.iter().zip(htlc_sigs.iter().enumerate());
47194720

47204721
$({

0 commit comments

Comments
 (0)