Support sending onion messages
authorValentine Wallace <vwallace@protonmail.com>
Sat, 28 May 2022 01:31:27 +0000 (18:31 -0700)
committerValentine Wallace <vwallace@protonmail.com>
Tue, 2 Aug 2022 23:17:27 +0000 (19:17 -0400)
commit9051c38ebe42e171fd0fcfa22d2b9ff6a1607b3b
tree8ea37801f8a16eedc5a1ed2c0e1ac1b50b5540fa
parent4c8dc2c2a0b9589298d937bf16061ae0ac99b31e
Support sending onion messages

This adds several utilities in service of then adding
OnionMessenger::send_onion_message, which can send to either an unblinded
pubkey or a blinded route. Sending custom TLVs and sending an onion message
containing a reply path are not yet supported.

We also need to split the construct_keys_callback macro into two macros to
avoid an unused assignment warning.
lightning/src/ln/onion_utils.rs
lightning/src/onion_message/blinded_route.rs
lightning/src/onion_message/messenger.rs
lightning/src/onion_message/mod.rs
lightning/src/onion_message/packet.rs
lightning/src/onion_message/utils.rs