rust-lightning/lightning-invoice
Alec Chen 039b1c8d10
Allow users to provide custom TLVs through RecipientOnionFields
Custom TLVs allow users to send extra application-specific data with
a payment. These have the additional flexibility compared to
`payment_metadata` that they don't have to reflect recipient generated
data provided in an invoice, in which `payment_metadata` could be
reused.

We ensure provided type numbers are unique, increasing, and within the
experimental range with the `RecipientOnionFields::with_custom_tlvs`
method.

This begins sender-side support for custom TLVs.
2023-08-08 15:55:00 -05:00
..
fuzz Bump workspace to rust edition 2018 2022-10-21 14:47:34 -07:00
src Allow users to provide custom TLVs through RecipientOnionFields 2023-08-08 15:55:00 -05:00
tests Qualify the BOLT 11 semantic error type 2023-07-14 15:06:17 -05:00
.gitignore Pure import of lightning-invoice crate 2021-04-09 10:08:27 -04:00
Cargo.toml Bump crate versions to 0.0.116 release 2023-07-21 20:42:13 +00:00
README.md Clean up lightning-invoice Cargo.toml and README 2021-04-09 10:08:27 -04:00

lightning-invoice

Docs.rs

This repo provides data structures for BOLT 11 lightning invoices and functions to parse and serialize these from and to bech32.

Please be sure to run the test suite since we need to check assumptions regarding SystemTime's bounds on your platform. You can also call check_platform on startup or in your test suite to do so.