rust-lightning/lightning
Jeffrey Czyz 3bd00b943a
Add c_bindings version of InvoiceBuilder
Use the macros introduced in the previous commit to define two builders
for each type parameterization of InvoiceBuilder
- InvoiceWithExplicitSigningPubkeyBuilder
- InvoiceWithDerivedSigningPubkeyBuilder

The difference between these and InvoiceBuilder is that these have
methods that take `self` by mutable reference instead of by value and
don't return anything instead returning the modified builder. This is
required because bindings don't support move semantics nor impl blocks
specific to a certain type parameterization. Because of this, the
builder's contents must be cloned when building a Bolt12Invoice.

Keeps InvoiceBuilder defined so that it can be used internally in
ChannelManager's OffersMessageHandler even when compiled for c_bindings.
2024-03-08 10:39:22 -06:00
..
src Add c_bindings version of InvoiceBuilder 2024-03-08 10:39:22 -06:00
Cargo.toml Bump versions to LDK 0.0.121/invoice 0.29 2024-01-22 22:32:30 +00:00