Update send_onion_message API to take new OnionMessageContents enum
authorValentine Wallace <vwallace@protonmail.com>
Tue, 18 Oct 2022 17:22:12 +0000 (13:22 -0400)
committerValentine Wallace <vwallace@protonmail.com>
Tue, 18 Oct 2022 17:28:29 +0000 (13:28 -0400)
commitec538d181677bdd4a9dd7b29f619fff032fc2120
treeea4011c7595f93182058a4168b90848506cf1067
parent87b637c990e4c7aec7f62544f2d313e2d59db115
Update send_onion_message API to take new OnionMessageContents enum

OnionMessageContents specifies the data TLV that the sender wants in the onion
message. This enum only has one variant for now, Custom. When offers are added,
additional variants for invoice, invoice_request, and invoice_error will be
added.

This commit does not actually implement sending the custom OM contents, just
the API change.
lightning/src/onion_message/functional_tests.rs
lightning/src/onion_message/messenger.rs
lightning/src/onion_message/mod.rs
lightning/src/onion_message/packet.rs