#invoice #lightning #bitcoin #encode-decode #bolt11

no-std lightning-invoice

Data structures to parse and serialize BOLT11 lightning invoices

42 releases (breaking)

0.32.0 Sep 3, 2024
0.31.0 May 9, 2024
0.29.0 Jan 23, 2024
0.27.0 Dec 16, 2023
0.1.0 Dec 14, 2018

#9 in #invoice

Download history 6361/week @ 2024-07-08 7116/week @ 2024-07-15 6794/week @ 2024-07-22 5234/week @ 2024-07-29 6330/week @ 2024-08-05 6191/week @ 2024-08-12 5517/week @ 2024-08-19 7751/week @ 2024-08-26 7664/week @ 2024-09-02 6848/week @ 2024-09-09 7344/week @ 2024-09-16 11124/week @ 2024-09-23 12348/week @ 2024-09-30 10670/week @ 2024-10-07 11606/week @ 2024-10-14 13439/week @ 2024-10-21

49,067 downloads per month
Used in 114 crates (42 directly)

MIT/Apache

195KB
4K 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.


lib.rs:

This crate provides data structures to represent lightning BOLT11 invoices and functions to create, encode and decode these. If you just want to use the standard en-/decoding functionality this should get you started:

Dependencies

~7.5MB
~92K SLoC