Generalize onion message ForwardTlvs::next_node_id
authorJeffrey Czyz <jkczyz@gmail.com>
Sat, 2 Mar 2024 18:28:20 +0000 (12:28 -0600)
committerJeffrey Czyz <jkczyz@gmail.com>
Thu, 11 Apr 2024 00:11:19 +0000 (19:11 -0500)
commitd85e0d619a5225cbf73bdf7cac7f400529cb6a73
tree6b956ec2cbff660f03bd0b6bdf58f6d077c5402e
parenteaf76f6cceefdc08202d7fe08e4760df0e824d38
Generalize onion message ForwardTlvs::next_node_id

Allow either using a node id or a short channel id when forwarding an
onion message. This allows for a more compact representation of blinded
paths, which is advantageous for reducing offer QR code size.

Follow-up commits will implement handling the short channel id case as
it requires looking up the destination node id.
lightning/src/blinded_path/message.rs
lightning/src/onion_message/messenger.rs
lightning/src/onion_message/packet.rs