2
0
mirror of https://github.com/lnbook/lnbook synced 2024-11-04 18:00:26 +00:00

ch-10: mention that the inner HMAC for the final hop is all zeros

This commit is contained in:
Olaoluwa Osuntokun 2021-07-25 19:04:02 -07:00 committed by Andreas M. Antonopoulos
parent 47e4018eb4
commit 80624d94c5

View File

@ -383,7 +383,7 @@ For each hop the sender (Alice) repeats the same process:
1. Alice generates 1300 bytes of filler and fills the 1300-byte onion payload field with this filler.
1. Alice calculates the HMAC for the hop payload
1. Alice calculates the HMAC for the hop payload (zeros for the final hop).
1. Alice calculates the length of the hop payload + HMAC + space to store the length itself