From 74c9fa74932311f9536ba7f580c51c253f2cb1db Mon Sep 17 00:00:00 2001 From: Pierre-Marie Padiou Date: Wed, 1 Feb 2017 11:12:05 +0100 Subject: [PATCH] replaced payment-key by payment-hash --- 02-peer-protocol.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/02-peer-protocol.md b/02-peer-protocol.md index 4458214..2a0e019 100644 --- a/02-peer-protocol.md +++ b/02-peer-protocol.md @@ -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