Jul 5, 2022, 6 PM UTC, #review-club on Discord
lightningdevkit/rust-lightning#1503
Host: ariard PR author: ValentineWallace
The PR branch HEAD was cd06d2d at the time of this review club meeting.
- In current Lightning, the invoice protocol for payment request is communicated out-of-band.
- An upgrade of the payment protocol called offers has been proposed to enable new features : static invoices, refunds and proof of payer.
- Offers leverages few components such as Schnorr sigs and the onion format used to route HTLC.
- #1503 introduces a new module
OnionMessengerto receive and send onion messages, with an API matching the already existentChannelManager. The API design discussions already happened with #1432.
- How the current onion format for HTLC payment works ? What the
hop_payloadsrepresent ? - How the construction of the new onion format
OnionPacketdiffers ? What's the relationship withBlindedRoute, "control" TLVs and "data" TLVs ? - The blinded route mechanism claims to hide the identity of the recipient. How it achieves ? Are they privacy leaks or deanonymization attacks ?
- What offers offer as features and new payments flows ? How does it compare to LN-url ?
- What could be efficient rate-limitations for onion messages ?
- What could be future use-case of
CustomHandlerandCustomMessage<T>?