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

no-std lightning-invoice

Data structures to parse and serialize BOLT11 lightning invoices

44 releases (breaking)

new 0.33.0 Jan 16, 2025
0.33.0-beta1 Dec 22, 2024
0.32.0 Sep 3, 2024
0.31.0 May 9, 2024
0.1.0 Dec 14, 2018

#11 in #invoice

Download history 11794/week @ 2024-09-26 11417/week @ 2024-10-03 10821/week @ 2024-10-10 12917/week @ 2024-10-17 11386/week @ 2024-10-24 11727/week @ 2024-10-31 10703/week @ 2024-11-07 11152/week @ 2024-11-14 9050/week @ 2024-11-21 6658/week @ 2024-11-28 8387/week @ 2024-12-05 8658/week @ 2024-12-12 5676/week @ 2024-12-19 3811/week @ 2024-12-26 7301/week @ 2025-01-02 8357/week @ 2025-01-09

26,374 downloads per month
Used in 129 crates (45 directly)

MIT/Apache

200KB
4.5K 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
~95K SLoC