Add onion messages module + enable the construction of blinded routes
authorValentine Wallace <vwallace@protonmail.com>
Fri, 27 May 2022 23:25:15 +0000 (16:25 -0700)
committerValentine Wallace <vwallace@protonmail.com>
Tue, 2 Aug 2022 16:11:11 +0000 (12:11 -0400)
commit4e5381a50fa524cb183a3d92dee05cb4f2950255
tree211901b7da3f194b811eab7190c1ce2a8126c748
parente403999ffd2f92669caf4d538a95a657ad7018f9
Add onion messages module + enable the construction of blinded routes

Blinded routes can be provided as destinations for onion messages, when the
recipient prefers to remain anonymous.

We also add supporting utilities for constructing blinded path keys, and
control TLVs structs representing blinded payloads prior to being
encoded/encrypted. These utilities and struct will be re-used in upcoming
commits for sending and receiving/forwarding onion messages.

Finally, add utilities for reading the padding from an onion message's
encrypted TLVs without an intermediate Vec.
lightning/src/lib.rs
lightning/src/ln/mod.rs
lightning/src/ln/onion_utils.rs
lightning/src/onion_message/blinded_route.rs [new file with mode: 0644]
lightning/src/onion_message/mod.rs [new file with mode: 0644]
lightning/src/onion_message/utils.rs [new file with mode: 0644]