#bitcoin #invoice #bolt11

no-std lightning-invoice

Data structures to parse and serialize BOLT11 lightning invoices

46 releases (breaking)

new 0.33.2 Apr 2, 2025
0.33.1 Jan 29, 2025
0.33.0-beta1 Dec 22, 2024
0.32.0 Sep 3, 2024
0.1.0 Dec 14, 2018

#9 in #invoice

Download history 8631/week @ 2024-12-11 6424/week @ 2024-12-18 3917/week @ 2024-12-25 6827/week @ 2025-01-01 7781/week @ 2025-01-08 10038/week @ 2025-01-15 10291/week @ 2025-01-22 11213/week @ 2025-01-29 11599/week @ 2025-02-05 8658/week @ 2025-02-12 6920/week @ 2025-02-19 6698/week @ 2025-02-26 6259/week @ 2025-03-05 7326/week @ 2025-03-12 8253/week @ 2025-03-19 7123/week @ 2025-03-26

30,502 downloads per month
Used in 141 crates (52 directly)

MIT/Apache

200KB
4.5K SLoC

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.

Dependencies

~7.5MB
~93K SLoC