Stateless offer and refund builder utilities
authorJeffrey Czyz <jkczyz@gmail.com>
Tue, 14 Feb 2023 03:54:37 +0000 (21:54 -0600)
committerJeffrey Czyz <jkczyz@gmail.com>
Wed, 18 Oct 2023 23:33:14 +0000 (18:33 -0500)
commit7c6e62f42359407443c9baacd4ac12ffb2d772b4
tree57a5daf2435d492f6aac32ee39f0e1fd79a6c0db
parent11fb9c486b2ebbd57ed41ad92b91a7f92b55236a
Stateless offer and refund builder utilities

Add utility functions to ChannelManager for creating OfferBuilder,
and RefundBuilder such that derived keys are used for the signing
pubkey and payer id, respectively. This allows for stateless
verification of any InvoiceRequest and Invoice messages.

Later, blinded paths can be included in the returned builders.

Also tracks future payments using the given PaymentId such that the
corresponding Invoice is paid only once.
lightning/src/ln/channelmanager.rs
lightning/src/ln/outbound_payment.rs
lightning/src/offers/offer.rs
lightning/src/offers/parse.rs
lightning/src/offers/refund.rs