diff --git a/02-peer-protocol.md b/02-peer-protocol.md index 7444cb7..347ac69 100644 --- a/02-peer-protocol.md +++ b/02-peer-protocol.md @@ -539,6 +539,9 @@ reconnection if it has the sender did not previously acknowledge the commitment of that HTLC. A receiving node MAY fail the channel if other `id` violations occur. +The `onion-routing-packet` contains an obfuscated list of hops and instructions for each hop along the path. +It commits to the HTLC by setting the `payment-key` as associated data, i.e., including the `payment-key` in the computation of HMACs. +This prevents replay attacks that'd reuse a previous `onion-routing-packet` with a different `payment-key`. #### Rationale