mirror of
https://github.com/lightningdevkit/rust-lightning.git
synced 2025-02-25 07:17:40 +01:00
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. |
||
---|---|---|
.. | ||
fuzz | ||
src | ||
tests | ||
.gitignore | ||
Cargo.toml | ||
README.md |
lightning-invoice
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.