]> git.bitcoin.ninja Git - rust-lightning/commit
Receive payment onions as new InboundPayload instead of OnionHopData
authorValentine Wallace <vwallace@protonmail.com>
Fri, 24 Mar 2023 16:46:16 +0000 (12:46 -0400)
committerValentine Wallace <vwallace@protonmail.com>
Wed, 2 Aug 2023 19:54:34 +0000 (12:54 -0700)
commit02a6d895a576d24c612d83c834f30ea2fd7ab67d
treeefeaf2e68ae724999ccce620a345b4a30c7c5131
parent0c37488ff4c620edcc479e3dcad17a53d52ca114
Receive payment onions as new InboundPayload instead of OnionHopData

To support route blinding, we want to split OnionHopData into two separate
structs, one for inbound onions and one for outbound onions. This is because
blinded payloads change the fields present in the onion hop data struct based
on whether we're sending vs receiving (outbound onions include encrypted blobs,
inbound onions can decrypt those blobs and contain the decrypted fields
themselves).

In upcoming commits, we'll add variants for blinded payloads to the new
InboundPayload enum.
12 files changed:
fuzz/src/bin/gen_target.sh
fuzz/src/bin/msg_onion_hop_data_target.rs [deleted file]
fuzz/src/bin/onion_hop_data_target.rs [new file with mode: 0644]
fuzz/src/lib.rs
fuzz/src/msg_targets/gen_target.sh
fuzz/src/msg_targets/mod.rs
fuzz/src/msg_targets/msg_onion_hop_data.rs [deleted file]
fuzz/src/onion_hop_data.rs [new file with mode: 0644]
fuzz/targets.h
lightning/src/ln/channelmanager.rs
lightning/src/ln/msgs.rs
lightning/src/ln/onion_utils.rs