Add InvoiceRequestTlvStream::paths
authorJeffrey Czyz <jkczyz@gmail.com>
Tue, 23 Apr 2024 23:30:59 +0000 (18:30 -0500)
committerJeffrey Czyz <jkczyz@gmail.com>
Fri, 26 Apr 2024 23:14:09 +0000 (18:14 -0500)
commit61e4fcea8e19eba1f6b1299c8415031c3a031a94
tree36cf348de8cb2805110b6d49504dc987cc2c0d59
parent94d5af663d74177079124f15b40b65e16fbb1b27
Add InvoiceRequestTlvStream::paths

Instead of reusing OfferTlvStream::paths, add a dedicated paths TLV to
InvoiceRequestTlvStream such that it can be used in Refund. This allows
for an Offer without a signing_pubkey and still be able to differentiate
whether an invoice is for an offer or a refund.
lightning/src/offers/invoice.rs
lightning/src/offers/invoice_request.rs
lightning/src/offers/parse.rs
lightning/src/offers/refund.rs