-
Notifications
You must be signed in to change notification settings - Fork 422
Description
Lexe is trying to avoid persisting all offers that are generated, as the offers might never be paid, and the offers include redundant blinded path data which we want to throw away. However, we'd still like to surface much of the original offer information to our users when their offers do get paid.
LDK recovers most of the user-relevant offer fields in the InvoiceRequest sent by the payer. We would like to continue having LDK handle these InvoiceRequests, but we'd like to have access to several more fields of the original offer (received back via InvoiceRequest) to store and perhaps show these to the recipient when we receive a PaymentClaimable event.
We want to see:
- Original offer
amount: not included anywhere inPaymentClaimable absolute_expiry:not included anywhere inPaymentClaimabledescription: not included anywhere inPaymentClaimableissuer: not included anywhere inPaymentClaimable
We already have access to these fields:
- Offer
id(inBolt12OfferContextexposed inPaymentClaimable) payer_note: (inInvoiceRequestFields)quantity: (inInvoiceRequestFields)human_readable_name: (inInvoiceRequestFields)
Adding these to InvoiceRequestFields seems like the most straightforward way to accomplish this, but the main requirement is that we can access the fields from somewhere within PaymentClaimable. Would this be possible?