#invoice #lightning #bitcoin #bolt11

no-std lightning-invoice

Data structures to parse and serialize BOLT11 lightning invoices

29 breaking releases

new 0.30.0 Apr 9, 2024
0.29.0 Jan 23, 2024
0.28.0 Jan 17, 2024
0.27.0 Dec 16, 2023
0.1.0 Dec 14, 2018

#233 in Magic Beans

Download history 2938/week @ 2023-12-21 2728/week @ 2023-12-28 5404/week @ 2024-01-04 5273/week @ 2024-01-11 6542/week @ 2024-01-18 5088/week @ 2024-01-25 5837/week @ 2024-02-01 7749/week @ 2024-02-08 9133/week @ 2024-02-15 8672/week @ 2024-02-22 9756/week @ 2024-02-29 9423/week @ 2024-03-07 6915/week @ 2024-03-14 7533/week @ 2024-03-21 6854/week @ 2024-03-28 6586/week @ 2024-04-04

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

MIT/Apache

6MB
100K 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