Skip to content

Commit

Permalink
fixup! WIP: BOLT 7: Onion message support.
Browse files Browse the repository at this point in the history
Make reference to the yet-to-be-merged blinded path spec part explicit.
Fix up tabs in indent, too.

Signed-off-by: Rusty Russell <[email protected]>
  • Loading branch information
rustyrussell committed Mar 29, 2020
1 parent 2d78fc8 commit 305ef45
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions 04-onion-routing.md
Original file line number Diff line number Diff line change
Expand Up @@ -415,14 +415,16 @@ The writer:
or `enctlv` indicating the next node.
- For the the final node's `onionmsg_payload`:
- if the final node is permitted to reply:
- MUST set `reply_path` `blinding` to the initial blinding factor for the `next_node_id`
- MUST set `reply_path` `blinding` to the initial blinding factor for the `next_node_id`
- For the first `reply_path` `path`:
- MUST set `node_id` to the first node in the reply path.
- For the remaining `reply_path` `path`:
- MUST set `node_id` to the blinded node id to encrypt the onion hop for.
- MUST set `node_id` to the first node in the reply path.
- For the remaining `reply_path` `path`:
- MUST set `node_id` to the blinded node id to encrypt the onion hop for.
- Within `reply_path` `path`:
- MUST set `enctlv` to the ChaCha20 encryption of a valid `encmsg_tlvs` containing exactly
one of either `next_node_id` or `next_short_channel_id`.
- MUST encrypt `enctlv` as detailed in (FIXME: reference to t-bast's blinded path section:
`ChaChaPoly-1305` encryption using an all-zero nonce).
- MUST set `enctlv` to a valid `encmsg_tlvs` containing exactly one of either
`next_node_id` or `next_short_channel_id`.
- otherwise:
- MUST not set `reply_path`.

Expand Down

0 comments on commit 305ef45

Please sign in to comment.