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

BOLT 4: put dummy hop recommendation into the requirements.

It was mentioned in the rationale only.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell 2024-07-17 10:55:27 +09:30
parent d91642e6a0
commit 43725d7f07

View File

@ -509,6 +509,7 @@ The writer of a `blinded_path`:
- 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 - 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
- SHOULD add padding data to ensure all `encrypted_data_tlv[i]` have the same length - SHOULD add padding data to ensure all `encrypted_data_tlv[i]` have the same length
- MUST encrypt each `encrypted_data_tlv[i]` with ChaCha20-Poly1305 using the corresponding $`rho_i`$ key and an all-zero nonce to produce `encrypted_recipient_data[i]` - MUST encrypt each `encrypted_data_tlv[i]` with ChaCha20-Poly1305 using the corresponding $`rho_i`$ key and an all-zero nonce to produce `encrypted_recipient_data[i]`
- MAY add additional "dummy" hops at the end of the path (which it will ignore on receipt) to obscure the path length.
The reader of the `blinded_path`: The reader of the `blinded_path`:
- MUST prepend its own onion payloads to reach the `first_node_id` - MUST prepend its own onion payloads to reach the `first_node_id`