rust-lightning/lightning-invoice
Matt Corallo 052e7c3df0 Marginally reduce allocations in lightning-invoice
In aa2f6b47df we refactored
`lightning-invoice` de/serialization to use the new version of
`bech32`, but in order to keep the public API the same we
introduced one allocation we could have skipped.

Instead, here, we replace the public `Utf8Error` with
`FromUtf8Error` which contains the original data which failed
conversion, removing an allocation in the process.
2024-10-03 17:26:01 +00:00
..
src Marginally reduce allocations in lightning-invoice 2024-10-03 17:26:01 +00:00
tests Upgrade bech32 dependency, bech32 serialization improvements 2024-10-02 21:21:07 +02:00
.gitignore Pure import of lightning-invoice crate 2021-04-09 10:08:27 -04:00
Cargo.toml Upgrade bech32 dependency, bech32 serialization improvements 2024-10-02 21:21:07 +02: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.