Builder for creating invoices for offers
authorJeffrey Czyz <jkczyz@gmail.com>
Tue, 20 Dec 2022 04:23:39 +0000 (22:23 -0600)
committerJeffrey Czyz <jkczyz@gmail.com>
Fri, 20 Jan 2023 22:04:37 +0000 (16:04 -0600)
commit88c5197e4445166c4dd8307b9c6903ef4990c70f
tree0f2ef72485d2787a7d839fea1dad255703c1db7e
parente1aa18aed800d575da555df1d84a468cd585f3f3
Builder for creating invoices for offers

Add a builder for creating invoices for an offer from a given request
and required fields. Other settings are optional and duplicative
settings will override previous settings. Building produces a
semantically valid `invoice` message for the offer, which then can be
signed with the key associated with the offer's signing pubkey.
lightning/src/offers/invoice.rs
lightning/src/offers/invoice_request.rs
lightning/src/offers/offer.rs
lightning/src/offers/refund.rs
lightning/src/util/ser.rs
lightning/src/util/ser_macros.rs