#invoice #lightning #bitcoin #bolt11

no-std lightning-invoice

Data structures to parse and serialize BOLT11 lightning invoices

39 releases (breaking)

0.31.0 May 9, 2024
0.31.0-beta Apr 19, 2024
0.29.0 Jan 23, 2024
0.27.0 Dec 16, 2023
0.1.0 Dec 14, 2018

#129 in Magic Beans

Download history 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 8304/week @ 2024-04-04 8056/week @ 2024-04-11 6876/week @ 2024-04-18 6432/week @ 2024-04-25 6086/week @ 2024-05-02 7267/week @ 2024-05-09 6110/week @ 2024-05-16 4667/week @ 2024-05-23

25,017 downloads per month
Used in 82 crates (36 directly)

MIT/Apache

6.5MB
109K 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