]> git.bitcoin.ninja Git - rust-lightning/commit
Owned and ref versions of Bolt11InvoiceDescription
authorJeffrey Czyz <jkczyz@gmail.com>
Mon, 28 Oct 2024 19:49:21 +0000 (14:49 -0500)
committerJeffrey Czyz <jkczyz@gmail.com>
Mon, 28 Oct 2024 19:49:21 +0000 (14:49 -0500)
commit0e1723dc74b5261604f43e19eaf89590ab8539d4
tree737c0ce51f1ceca87ada0ceb1dd96dd39b008f95
parent206ab82c022dbb8d514417774dba52b0912a4ef4
Owned and ref versions of Bolt11InvoiceDescription

Split Bolt11InvoiceDescription into a version used with references to
the description or description hash in the invoice and an owned version
of these for when constructing an invoice. The latter is useful as it
removes an unnecessary clone and can be used in a future change
specifying either a description or description hash in larger set of
invoice parameters. Since it doesn't use a reference, it can be exposed
in bindings as well.
lightning-invoice/src/lib.rs
lightning/src/ln/invoice_utils.rs