]> git.bitcoin.ninja Git - rust-lightning/commit
Add onion_message::Packet and adapt construct_onion_packet_with_init_noise for it
authorValentine Wallace <vwallace@protonmail.com>
Sat, 28 May 2022 00:47:15 +0000 (17:47 -0700)
committerValentine Wallace <vwallace@protonmail.com>
Tue, 2 Aug 2022 23:17:19 +0000 (19:17 -0400)
commit33ff2746ef3d1a36aab4f07cd1a7b512b6e411da
tree46a1cda87d5a9da2f906a24b86a388d4d52126b9
parent4e5381a50fa524cb183a3d92dee05cb4f2950255
Add onion_message::Packet and adapt construct_onion_packet_with_init_noise for it

We need to add a new Packet struct because onion message packet hop_data fields
can be of variable length, whereas regular payment packets are always 1366
bytes.

Co-authored-by: Valentine Wallace <vwallace@protonmail.com>
Co-authored-by: Jeffrey Czyz <jkczyz@gmail.com>
lightning/src/ln/msgs.rs
lightning/src/ln/onion_utils.rs
lightning/src/onion_message/mod.rs
lightning/src/onion_message/packet.rs [new file with mode: 0644]
lightning/src/util/ser.rs