File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -5629,7 +5629,9 @@ impl<SP: Deref> Channel<SP> where
5629
5629
5630
5630
let our_commitment_transaction = INITIAL_COMMITMENT_NUMBER - self.context.holder_commitment_point.transaction_number() - 1;
5631
5631
if msg.next_remote_commitment_number > 0 {
5632
- let expected_point = self.context.holder_signer.as_ref().get_per_commitment_point(INITIAL_COMMITMENT_NUMBER - msg.next_remote_commitment_number + 1, &self.context.secp_ctx).expect("TODO");
5632
+ let expected_point = self.context.holder_signer.as_ref()
5633
+ .get_per_commitment_point(INITIAL_COMMITMENT_NUMBER - msg.next_remote_commitment_number + 1, &self.context.secp_ctx)
5634
+ .expect("TODO: async signing is not yet supported for per commitment points upon channel reestablishment");
5633
5635
let given_secret = SecretKey::from_slice(&msg.your_last_per_commitment_secret)
5634
5636
.map_err(|_| ChannelError::close("Peer sent a garbage channel_reestablish with unparseable secret key".to_owned()))?;
5635
5637
if expected_point != PublicKey::from_secret_key(&self.context.secp_ctx, &given_secret) {
Original file line number Diff line number Diff line change @@ -725,6 +725,10 @@ impl HTLCDescriptor {
725
725
726
726
/// A trait to handle Lightning channel key material without concretizing the channel type or
727
727
/// the signature mechanism.
728
+ ///
729
+ /// Several methods allow error types to be returned to support async signing. This feature
730
+ /// is not yet complete, and panics may occur in certain situations when returning errors
731
+ /// for these methods.
728
732
pub trait ChannelSigner {
729
733
/// Gets the per-commitment point for a specific commitment number
730
734
///
You can’t perform that action at this time.
0 commit comments