rust-lightning/lightning-invoice
Matt Corallo e84f5edbc5 Increase the CLTV delay required on payments and forwards
This increases the CLTV_CLAIM_BUFFER constant to 18, much better
capturing how long it takes to go on chain to claim payments.
This is also more in line with other clients, and the spec, which
sets the default CLTV delay in invoices to 18.

As a side effect, we have to increase MIN_CLTV_EXPIRY_DELTA as
otherwise as are subject to an attack where someone can hold an
HTLC being forwarded long enough that we *also* close the channel
on which we received the HTLC.
2021-05-05 20:09:11 +00:00
..
fuzz Clean up lightning-invoice CI, license, and add to workspaces 2021-04-09 10:08:27 -04:00
src Increase the CLTV delay required on payments and forwards 2021-05-05 20:09:11 +00:00
tests Hide InvoiceFeatures behind InvoiceBuilder API 2021-05-03 16:23:24 -07:00
.gitignore Pure import of lightning-invoice crate 2021-04-09 10:08:27 -04:00
Cargo.toml Bump versions to 0.0.14, lightning-invoice 0.5 2021-05-01 00:43:15 +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.