Skip to content

Commit c9c2867

Browse files
committed
Update docs on verify_inbound_async_payment_context
We recently switched to `ReceiveAuthKey`-based blinded path authentication, removing various fields used to authenticate blinded paths from contexts. In doing so we forgot to update the documentation on `verify_inbound_async_payment_context` to note that it no longer does any cryptographic verification but instead only validates the expiry. Here we update that documentation.
1 parent 82a984a commit c9c2867

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lightning/src/offers/flow.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -543,13 +543,12 @@ where
543543

544544
/// Verifies the provided [`AsyncPaymentsContext`] for an inbound [`HeldHtlcAvailable`] message.
545545
///
546-
/// The context is verified using the `nonce` and `hmac` values, and ensures that the context
547-
/// has not expired based on `path_absolute_expiry`.
546+
/// Because blinded path contexts are verified as a part of onion message processing, this only
547+
/// validates that the context is not yet expired based on `path_absolute_expiry`.
548548
///
549549
/// # Errors
550550
///
551551
/// Returns `Err(())` if:
552-
/// - The HMAC verification fails for inbound context.
553552
/// - The inbound payment context has expired.
554553
#[cfg(async_payments)]
555554
pub fn verify_inbound_async_payment_context(

0 commit comments

Comments
 (0)