rust-lightning/lightning-invoice
benthecarman 0769b22f5c
Worlds smallest optimization
Preallocate for 8 items in the vec. I chose this value for

1. features
2. description
3. payment hash
4. expire time
5. min_final_cltv
6. payment secret
7. route hint
8. for the memes
2024-02-08 22:40:48 +00:00
..
fuzz Bump MSRV to rustc 1.63.0 and edition to 2021 2023-12-08 14:03:45 +01:00
src Worlds smallest optimization 2024-02-08 22:40:48 +00:00
tests Drop explicit bitcoin_hashes dependency in lightning-invoice 2023-12-15 22:31:51 +00:00
.gitignore Pure import of lightning-invoice crate 2021-04-09 10:08:27 -04:00
Cargo.toml Bump hashbrown dependency to 0.13 2024-02-02 18:05:08 +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.