rust-lightning/lightning-invoice
Matt Corallo 39c1d6b2af Replace the generic parse_int_be with a macro called twice
`parse_int_be` is generic across integer types and also input
types, but to do so it relies on the `num-traits` crate. There's
not a lot of reason for this now that std has `from_be_bytes`, so
we drop the generic now and replace it with a macro which is called
twice to create two functions, both only supporting conversion from
`u5` arrays.
2024-03-13 19:18:20 +00:00
..
fuzz Bump MSRV to rustc 1.63.0 and edition to 2021 2023-12-08 14:03:45 +01:00
src Replace the generic parse_int_be with a macro called twice 2024-03-13 19:18:20 +00:00
tests Drop explicit bitcoin_hashes dependency in lightning-invoice 2023-12-15 22:31:51 +00:00
.gitignore Pure import of lightning-invoice crate 2021-04-09 10:08:27 -04:00
Cargo.toml Replace the generic parse_int_be with a macro called twice 2024-03-13 19:18:20 +00:00
README.md Clean up lightning-invoice Cargo.toml and README 2021-04-09 10:08:27 -04:00

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.