Skip to content

Contradicting passages in BOLT-0004 #1274

@gijswijs

Description

@gijswijs

In my opinion BOLT-0004 contradictsin the paragraph about onion messages.

Field numbers 64 and above are reserved for payloads for the final hop, though these are not explicitly refused by non-final hops (unless even, of course!).

https://github.com/lightning/bolts/blob/68881992b97f20aca29edf7a4d673b8e6a70379a/04-onion-routing.md?plain=1#L1501-1521

But then a few lines down:

  • if it is not the final node according to the onion encryption:
    • if the onionmsg_tlv contains other tlv fields than encrypted_recipient_data:
      • MUST ignore the message.

https://github.com/lightning/bolts/blob/68881992b97f20aca29edf7a4d673b8e6a70379a/04-onion-routing.md?plain=1#L1563-1565

The way I read that, those two statements are in contradiction with each other: A non-final hop should ignore a message with any other field than encrypted_recipient_data (which has type 4) which is the same as explicitly refusing any type other than 4, which would include type 64 and above.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions