#lightning #bitcoin #invoice #bolt11

no-std lightning-invoice

Data structures to parse and serialize BOLT11 lightning invoices

24 breaking releases

new 0.25.0-alpha1 Sep 21, 2023
0.24.0 Jul 21, 2023
0.24.0-alpha1 Jun 24, 2023
0.22.0 Mar 4, 2023
0.1.0 Dec 14, 2018

#1024 in Magic Beans

Download history 3115/week @ 2023-06-02 3907/week @ 2023-06-09 4461/week @ 2023-06-16 4346/week @ 2023-06-23 4583/week @ 2023-06-30 4413/week @ 2023-07-07 4343/week @ 2023-07-14 3961/week @ 2023-07-21 4217/week @ 2023-07-28 4294/week @ 2023-08-04 5237/week @ 2023-08-11 5300/week @ 2023-08-18 5700/week @ 2023-08-25 5358/week @ 2023-09-01 5890/week @ 2023-09-08 5323/week @ 2023-09-15

23,211 downloads per month
Used in 26 crates (18 directly)

MIT/Apache

5.5MB
86K 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

~7MB
~86K SLoC