rust-lightning/lightning-invoice
Matt Corallo 85eb1fde56 Avoid returning a reference to a u64.
In c353c3ed7c an accessor method was
added which returns an `Option<&u64>`. While this allows Rust to
return an 8-byte object, returning a reference to something
pointer-sized is a somewhat strange API.

Instead, we opt for a straight `Option<u64>`, which is sadly
somewhat larger on the stack, but is simpler and already supported
in the bindings generation.
2022-09-19 09:23:26 +00:00
..
fuzz Drop honggfuzz arbitrary dependency to meet MSRV 2022-08-30 15:15:00 +00:00
src Avoid returning a reference to a u64. 2022-09-19 09:23:26 +00:00
tests Move network_graph.rs to gossip.rs 2022-06-02 15:15:30 -07:00
.gitignore Pure import of lightning-invoice crate 2021-04-09 10:08:27 -04:00
Cargo.toml Merge pull request #1694 from jurvis/jurvis/2022-08-move-scorer-from-router 2022-09-16 14:01:38 -05: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.