rust-lightning/lightning-invoice
Matt Corallo 008da77263 Drop the subsecond part of timestamps when constructing invoices
We had a user who was confused why an invoice failed to round-trip
(i.e. was not `PartialEq` with itself after write/read) when a
subsecond creation time was used (e.g. via the `from_system_time`
constructor).

This commit should address this confusion by dropping subsecond
parts in easily-accessible constructors when creating BOLT 11
invoices.

Fixes #1759.
2022-10-07 02:05:46 +00:00
..
fuzz Drop honggfuzz arbitrary dependency to meet MSRV 2022-08-30 15:15:00 +00:00
src Drop the subsecond part of timestamps when constructing invoices 2022-10-07 02:05:46 +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 Downgrade hashbrown to meet MSRV 2022-09-22 15:06:42 +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.