Define an OfferId for BOLT 12 Offers
authorJeffrey Czyz <jkczyz@gmail.com>
Mon, 25 Mar 2024 21:10:36 +0000 (16:10 -0500)
committerJeffrey Czyz <jkczyz@gmail.com>
Thu, 18 Apr 2024 14:12:33 +0000 (09:12 -0500)
commitb9970ff41b497bce5cba13b2bb8023368e8ea2f8
treef68f4accd94d8a15f14fbfdf6fe5dcf00cf1c315
parent9be364f60ea1ed348a94ea93e9e4d90394a4c1cb
Define an OfferId for BOLT 12 Offers

Use a merkle root hash of the offer TLV records to define an offer id.
Will be included in a BOLT 12 invoice's blinded payment paths in order
for the recipient to identify which offer the payment is for.
lightning/src/offers/merkle.rs
lightning/src/offers/offer.rs