1
0
mirror of https://github.com/lightning/bolts.git synced 2024-11-19 01:50:03 +01:00

Merge pull request #523 from nayuta-gondo/pr/20181204-ek_k

BOLT 4: fix the index of `ek`.
This commit is contained in:
Rusty Russell 2019-01-07 19:42:17 +00:00 committed by GitHub
commit cdb275b52e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -367,7 +367,7 @@ shared secret `ss_k` and ephemeral key for the next hop `ek_{k+1}` as follows:
- The ephemeral private key for the next hop `ek_{k+1}` is computed by
multiplying the current ephemeral private key `ek_k` by the blinding factor.
- The ephemeral public key for the next hop `epk_{k+1}` is derived from the
ephemeral private key `ek_k` by multiplying with the base point.
ephemeral private key `ek_{k+1}` by multiplying with the base point.
Once the sender has all the required information above, it can construct the
packet. Constructing a packet routed over `r` hops requires `r` 32-byte