]> git.bitcoin.ninja Git - rust-lightning/commit
Parse experimental offer TLV records
authorJeffrey Czyz <jkczyz@gmail.com>
Mon, 5 Aug 2024 23:51:32 +0000 (18:51 -0500)
committerJeffrey Czyz <jkczyz@gmail.com>
Tue, 5 Nov 2024 00:00:23 +0000 (18:00 -0600)
commite01e731ff7d1bfc62531fb333ac03ccf399c8d9a
treefc74731f5a9d3648bfbd09841ecbb3e0b97f0b81
parent38e9457d97f005d0044d94ae72ede2beed51b918
Parse experimental offer TLV records

The BOLT12 spec defines an experimental TLV range that are allowed in
offer messages. Allow this range when parsing an offer and include those
bytes in any invoice requests. Also include those bytes when computing
an OfferId and verifying that an InvoiceRequest is for a valid Offer.
lightning/src/offers/invoice.rs
lightning/src/offers/invoice_request.rs
lightning/src/offers/offer.rs
lightning/src/offers/refund.rs
lightning/src/offers/static_invoice.rs
lightning/src/util/ser.rs