mirror of
https://github.com/lightningdevkit/rust-lightning.git
synced 2025-02-25 07:17:40 +01:00
`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. |
||
---|---|---|
.. | ||
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.