#invoice #lightning #bitcoin #bolt11

no-std lightning-invoice

Data structures to parse and serialize BOLT11 lightning invoices

30 breaking releases

new 0.31.0-beta Apr 19, 2024
0.29.0 Jan 23, 2024
0.27.0 Dec 16, 2023
0.26.0 Oct 24, 2023
0.1.0 Dec 14, 2018

#217 in Magic Beans

Download history 1763/week @ 2023-12-23 3781/week @ 2023-12-30 5360/week @ 2024-01-06 5940/week @ 2024-01-13 6086/week @ 2024-01-20 5373/week @ 2024-01-27 5595/week @ 2024-02-03 10123/week @ 2024-02-10 8269/week @ 2024-02-17 8549/week @ 2024-02-24 9844/week @ 2024-03-02 8190/week @ 2024-03-09 7984/week @ 2024-03-16 6670/week @ 2024-03-23 7153/week @ 2024-03-30 6963/week @ 2024-04-06

29,744 downloads per month
Used in 81 crates (37 directly)

MIT/Apache

6.5MB
108K 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
~91K SLoC