Skip to content

Commit

Permalink
fixup! WIP: BOLT 7: Onion message support.
Browse files Browse the repository at this point in the history
It simplifies things a little if we make field numbers match the proposed
blinded HTLC fields (esp. next_short_channel_id).

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
  • Loading branch information
rustyrussell committed Mar 29, 2020
1 parent 3dfca54 commit f392205
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions 04-onion-routing.md
Original file line number Diff line number Diff line change
Expand Up @@ -375,31 +375,31 @@ is no legacy format, thus a `bigsize` of 0 means no payload.

1. tlvs: `onionmsg_payload`
2. types:
1. type: 2 (`next_short_channel_id`)
2. data:
* [`short_channel_id`:`short_channel_id`]
1. type: 4 (`next_node_id`)
2. data:
* [`point`:`node_id`]
1. type: 6 (`enctlv`)
1. type: 6 (`next_short_channel_id`)
2. data:
* [`...*byte`:`enctlv`]
* [`short_channel_id`:`short_channel_id`]
1. type: 8 (`reply_path`)
2. data:
* [`point`:`blinding`]
* [`...*onionmsg_path`:`path`]
1. type: 10 (`blinding`)
1. type: 10 (`enctlv`)
2. data:
* [`...*byte`:`enctlv`]
1. type: 12 (`blinding`)
2. data:
* [`point`:`blinding`]

1. tlvs: `encmsg_tlvs`
2. types:
1. type: 2 (`next_short_channel_id`)
2. data:
* [`short_channel_id`:`short_channel_id`]
1. type: 4 (`next_node_id`)
2. data:
* [`point`:`node_id`]
1. type: 6 (`next_short_channel_id`)
2. data:
* [`short_channel_id`:`short_channel_id`]

1. subtype: `onionmsg_path`
2. data:
Expand Down

0 comments on commit f392205

Please sign in to comment.