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

no-std lightning-invoice

Data structures to parse and serialize BOLT11 lightning invoices

42 releases (breaking)

0.32.0 Sep 3, 2024
0.31.0 May 9, 2024
0.29.0 Jan 23, 2024
0.27.0 Dec 16, 2023
0.1.0 Dec 14, 2018

#10 in #invoice

Download history 6085/week @ 2024-07-25 5902/week @ 2024-08-01 6399/week @ 2024-08-08 5550/week @ 2024-08-15 6522/week @ 2024-08-22 7343/week @ 2024-08-29 7248/week @ 2024-09-05 7624/week @ 2024-09-12 9259/week @ 2024-09-19 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 10566/week @ 2024-11-07

48,607 downloads per month
Used in 119 crates (42 directly)

MIT/Apache

195KB
4K 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