Skip to content

Commit 6654c57

Browse files
committed
BOLT 4: rename onionmsg_hop to blinded_path_hop
It's used for blinded payment paths, too, not just onion messages. Suggested-by: @t-bast Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
1 parent 43725d7 commit 6654c57

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

04-onion-routing.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -443,9 +443,9 @@ intermediary nodes could simply claim the remaining ones.
443443
* [`point`:`first_node_id`]
444444
* [`point`:`first_path_key`]
445445
* [`byte`:`num_hops`]
446-
* [`num_hops*onionmsg_hop`:`path`]
446+
* [`num_hops*blinded_path_hop`:`path`]
447447

448-
1. subtype: `onionmsg_hop`
448+
1. subtype: `blinded_path_hop`
449449
2. data:
450450
* [`point`:`blinded_node_id`]
451451
* [`u16`:`enclen`]
@@ -503,7 +503,7 @@ The writer of a `blinded_path`:
503503
- MUST set `first_path_key` to $`E_0`$
504504
- MUST create a series of blinded node IDs $`B_i`$ for each node using the following algorithm:
505505
- $`B_i = HMAC256(\text{"blinded\_node\_id"}, ss_i) * N_i`$ (blinded `node_id` for $`N_i`$, private key known only by $`N_i`$)
506-
- MUST set `blinded_node_id` for each `onionmsg_hop` in `path` to $`B_i`$
506+
- MUST set `blinded_node_id` for each `blinded_path_hop` in `path` to $`B_i`$
507507
- MAY replace $`E_{i+1}`$ with a different value, but if it does:
508508
- MUST set `encrypted_data_tlv[i].next_path_key_override` to $`E_{i+1}`$
509509
- MAY store private data in `encrypted_data_tlv[r].path_id` to verify that the route is used in the right context and was created by them

0 commit comments

Comments
 (0)