1
0
Fork 0
mirror of https://github.com/lightning/bolts.git synced 2025-02-23 14:40:41 +01:00

replaced payment-key by payment-hash

This commit is contained in:
Pierre-Marie Padiou 2017-02-01 11:12:05 +01:00 committed by Rusty Russell
parent 0dd1d383ed
commit 74c9fa7493

View file

@ -570,8 +570,8 @@ 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`.
It commits to the HTLC by setting the `payment-hash` as associated data, i.e., including the `payment-hash` in the computation of HMACs.
This prevents replay attacks that'd reuse a previous `onion-routing-packet` with a different `payment-hash`.
#### Rationale